How to determine CW compiler/linker command-line options?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to determine CW compiler/linker command-line options?

2,356 次查看
RichTestardi
Senior Contributor II
Hi,
 
I'm transitioning from a CW GUI build process to a command-line build process, and would like to know what command-line options the CW GUI is currently invoking the compiler (mwccmcf.exe), linker (mwldmcf.exe), and assembler (mwasmmcf.exe) with.
 
Basically, I've set all the options how I want them in the CW GUI and would like to be able to make the command-line build process create identical bits.
 
Is there a way to see the command-lines the CW GUI is invoking when it does its builds?  I.e., how the CW GUI selections translate into command-line options...
 
I'm running CW7.1 on MCF52221 and MCF52233.
 
Thanks!
 
-- Rich
 
标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

537 次查看
RichTestardi
Senior Contributor II
PS I'm familiar with the info in ColdFire_Build_Tools_Reference.pdf and that is how I have gotten as far as I have...  The issue there is that the mapping between CW GUI option and command-line option is not always 100% clear, and in many cases it is unclear what command-line option is "default", leaving me potentially needing to specify every single possible option...  So I'm hoping for a shortcut to give me a warm-fuzzy that I'm exactly duplicating the CW GUI build with my new command-line build.  Thanks!
0 项奖励
回复

537 次查看
CrasyCat
Specialist III
Hello
 
Unfortunately there is no way in CodeWarrior for Coldfire to display the command line actually created to build a source file.
 
You need to look at available options in command line tools (use option -help to see a list of available options) and  activate whatever options you need.
 
CrasyCat
0 项奖励
回复