Hi,
I'm using CodeWarrior_for_MPC5xxx_v2.5 with the IDE 5.9.0 and i works fine.
I have to use now the command line to build my project.
I don't want to use the CmdIDE tool but the command line tools from
\CodeWarrior_for_MPC5xxx_v2.5\PowerPC_EABI_Tools\Command_Line_Tools.
Unfortunately, i don't find the commandline.bat which is supposed to be with the CodeWarrior_Examples.
Could you put it there please ?
Regards.
Hello
The CodeWarrior for Coldfire layout includes a sample project that can be built from command line.
This is not available on CodeWarrior for PA55xx tool chain.
You can find information on how to build from command line in manual Power Architecture Build Tools Reference.pdf.
Look at chapter Using Build Tools on the Command Line.
CrasyCat
Hi CrasyCat,
Thank you for your answer. Thanks to your help, i managed to compile from the command line.
The thing is that i can not give the source files to my client.
I can only give the object files to him.
My client adds his own object files to the project to build the final binary.
Can i consider the TargetDataWindows.tdt to be a static library (I tried to link it but i does not work) ?
Do i have other means than generating object files with a makefile or a batch ?
Many Thanks
Regards
Hello
Did you consider creating a static library?
When building from IDE, set Project Type to library.
This should generate a .lib or .a file, which can be delivered to your customer.
Customer can then link that file to his application in the same way he is linking MSL or runtime library files.
CrasyCat
Hi CrasyCat,
Many thanks again for your help.
As you said i converted the CW project into a static library. And I linked it with the main function to get an .elf file
It looks OK but there is something which surprise me a little bit :
Both .Map and .elf files from this command line project are smaller than the original project (CodeWarrior) (1/8 time smaller) :
I tried to set the option -static to the link command without success. I thought that was set by default (statically linked).
When i look at the map file of the CodeWarrior Project, i see that there are many functions from libraries that are not used by the project (as if the compiler put everything from the library). I thought it was no longer possible with modern compilers.
Do you have any explanation ?
Thanks
Regards
Hello
Are you talking about code size or about size of the file on the disk?
What are you comparing exactly?
CrasyCat
Hello,
I'm talking about the size of the Code Warrior Elf Executable and Code Warrior Link Map files. These files are generated in the /bin directory for a CW projet and in the directory i choose for a command line project.
Thanks
Regards
Hi CrasyCat,
I understood why the size of the binary files are different :
Only the object that are resolved are included when making an binary from a library.
This is complety logical.
Thanks anyway
Regards