Asembler generation

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

Asembler generation

3,695 次查看
patti
Contributor I
Hi, I have written a codewarrior project in C. But now I would like to se my code in asembler.
Are there anyway to generate asembler or machine code for my project?
 
thanks in advance
标签 (1)
标记 (1)
0 项奖励
回复
4 回复数

1,482 次查看
CrasyCat
Specialist III
Hello
CodeWarrior generates directly object code for the CPU you are targeting.
However you can have a look at the code generated by the compiler.
 
The way you can access that depends on the CPU you are targeting.
So which CPU are you targeting?
 
Also are you building from the IDE or from batch?
 
CrasyCat

1,482 次查看
patti
Contributor I
I am using S12X XGATE, I am compiling and building via IDE.
0 项奖励
回复

1,482 次查看
CrasyCat
Specialist III
Hello
 
Then for HC12 tools, just add option -Lasm to your compiler command line.
This will generate a file with extension .c.lst, which will show disassembly listing for the source file.
 
CrasyCat

1,482 次查看
YONDA
Contributor I
how would you do it for the PowerPC complier?
0 项奖励
回复