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