Prox / RFID
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Resume / Consulting
Contact Me

LDmicro Forum - one question for Jonathan

(you are viewing a thread; or go back to list of threads)

one question for Jonathan (by simon)
Hi Jonathan
Today i make a test .
I compiled a program for 16f877 and maximum length whas 62% (Becose of a timer) . I attached the program .
The same program compiled for atmega16 is over 100% , and for atmega32 is about 60-70% .
Is normal to be diferent ?
Fri Jan 1 2010, 17:53:01
no subject (by simon)
Fri Jan 1 2010, 17:54:13, download attachment 62% of 16f877.zip
(no subject) (by Jonathan Westhues)
Yes. The AVR and PIC16 use different instruction sets, and therefore different back ends. So there is no reason to expect that code for two different processors would have the same size.

The code size for the PIC16 targets may also change suddenly with a small change to the program. This is because it depends not only on the total number of instructions, but also on how well the program fits along the paging boundaries.
Fri Jan 1 2010, 18:00:11
no subject (by simon)
Thank you Jonathan
Sat Jan 2 2010, 04:28:36
how to open a project to edit in full (by Andre Pereira da Silva)
I had download all program mentioned by you, but can not run and open Ldmicro as project to edit, can you tell us a complate guide to turn more easy? Thanks a lot !
Wed Jan 13 2010, 05:41:50
(no subject) (by Jonathan Westhues)
There's no project file. I use the Microsoft C/C++ compiler, but I don't use the Visual Studio IDE. Just type "make.bat" from the command line.
Wed Jan 13 2010, 05:44:02
how to open a project to edit in full (by Andre Pereira da Silva)
Thanks for reply!
Can you send me a way to make it run under microsoft C/C++ to my email ?
I have a error telling "NMAKE" is not recognized as internal comand ...
Thanks for help !
Thu Jan 14 2010, 18:23:00
(no subject) (by Jonathan Westhues)
The compiler isn't set up to run from the command line; check your path and run vcvars32.bat.

It would be possible to build LDmicro within the IDE, if someone wrote the appropriate project files. But I prefer to build from the command line.
Thu Jan 14 2010, 22:09:44
MV is not recognised (by Andre Pereira da Silva)
I have an error saying this. What happens, do you know ?
Thanks !
Fri Jan 22 2010, 17:08:48
I have this error (by Andre Pereira da Silva)
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
cl : Command line error D8045 : cannot compile C file '.\ldinterpret.c' with the /clr option
Build log was saved at "file://c:\Arquivos de programas\Microsoft Visual Studio 9.0\VC\bin\ldmicro\Release\BuildLog.htm"
ldmicro21 - 1 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Fri Jan 22 2010, 18:12:01
(no subject) (by Jonathan Westhues)
The /clr flag means that you are trying to compile as managed code. This is not correct; it is ordinary C++ code, no .net stuff.

The 'mv' error means that the Unix-like tools are not set up correctly.
Fri Jan 22 2010, 18:24:13
I have this error (by Andre Pereira da Silva)
How can i get some solution ?
Fri Jan 22 2010, 18:33:51
(no subject) (by Jonathan Westhues)
By not compiling ldinterpet.c as managed code, and by installing the Unix-like tools so that they are in your PATH.
Fri Jan 22 2010, 18:37:07
Post a reply to this comment:
Your Name:
Your Email:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):