(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 ?
Thanks
no subject (by simon)
program
(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.
no subject (by simon)
Thank you Jonathan
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 !
Boss
(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.
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 !
BRAZIL
(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.
MV is not recognised (by Andre Pereira da Silva)
I have an error saying this. What happens, do you know ?
Thanks !
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 ==========
(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.
I have this error (by Andre Pereira da Silva)
How can i get some solution ?
thanks
(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.
Post a reply to this comment:
|