Asembler generation

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

Asembler generation

3,127 Views
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
Labels (1)
Tags (1)
0 Kudos
Reply
4 Replies

914 Views
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

914 Views
patti
Contributor I
I am using S12X XGATE, I am compiling and building via IDE.
0 Kudos
Reply

914 Views
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

914 Views
YONDA
Contributor I
how would you do it for the PowerPC complier?
0 Kudos
Reply