ide compiler vs command line compiler

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ide compiler vs command line compiler

2,472 Views
Climber
Contributor I
Hi,

Trying to move from ide to command line builds. IDE: 5.6.1.1658. Command line compiler: 8.0 build 1016
Project builds fine on both. But the code generated is not the 100% same. I tediously compared every option between ide and command line and can't find the difference. Besides the code being different, when turning on the compiler assembly output, the ide version generates assembly interlaced with the original C as comments. The command line version only outputs the assembly. Tried all options to make it output the original C as well, but no such luck.
When doing plugin diagnostics it shows that the IDE uses a compiler DLL with the same 8.0.1016 version.

Am at wits end.

Peter

Labels (1)
Tags (1)
0 Kudos
3 Replies

362 Views
Climber
Contributor I
Hi Win,

I started out with the exported makefile, but the export process omits all options that are used in the IDE project. And also the linking stage and ....
I just found out that the -asmout option will generate the interlaced C/asm exactly like the IDE if you also turn on the -g or -sym full debug option. Seems very unrelated, but it works.

Thanks,
Peter

0 Kudos

362 Views
J2MEJediMaster
Specialist I
You may have already looked into this, but just in case: Consult the 568000 Targeting Manual (568000_Targeting.pdf in the \Help folder), specifically the chapter on command-line tools. It describes all of the options for the CodeWarrior command-line compiler and linker modules. HTH.

---Tom
0 Kudos

362 Views
windam
Contributor I
Hi Peter.

Have you tried comparing the options used in the exported makefile?  See:
Project Menu -> Export Project as GNU Makefile

Hope this helps,

-win
0 Kudos