Output of assembler file when compile

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

Output of assembler file when compile

1,279 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by shiggy on Sat Mar 08 22:01:37 MST 2014
Hi All!

When compliling the C file by LPCXpresso, I want  to get the assembler file(xxxx.s).
Q1) Please tell me the procedure for LPCXpresso.

If you give me the answer, I am very happy.

Shiggy
0 Kudos
5 Replies

777 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Mon Mar 10 05:05:58 MST 2014
You must enter exactly what you were told - the commas are significant, So you need to add this
-c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -Wa,-a,-ad="$*.lst"
0 Kudos

777 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by shiggy on Sun Mar 09 23:28:58 MST 2014
Hi

Thanks your quck and kind answer.

I have opnend the miscellaneous section by followings.

|Quickstat panel|Buildsettings|View build options for "my profect name"|C/C++ build|Settings|
ToolSelectTAB|Miscellaneous|

I want to add as followling.
-c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -Wa -a -ad="$*.lst"

If there is something wrong, please tell me.
Because this is my my first experience.

Shiggy


Shiggy
0 Kudos

777 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Sun Mar 09 04:55:36 MST 2014
Fastest option:

Right click on your AXF file in Project Explorer->YourProjectName->Binaries

Select Binary Utilities->Disassemble
0 Kudos

777 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by starblue on Sun Mar 09 02:54:43 MST 2014
If you want an assembler listing you can go to Quick start panel -> Edit project settings -> MCU C Compiler -> Miscelaneous and add
 -Wa,-a,-ad="$*.lst"
to the "Other flags" field.

'-Wa,': These are options for the assembler
'-a': generate a listing file
'-ad': Don't generate listing for debug info
'="$*.lst"': The file name for the listing file, like the .c file name but with .lst suffix

There are some more options to specify output, you can look them up in the man page for the GNU assembler.

The listing will appear in the build subdirectory, e.g. "Debug".
0 Kudos

777 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Sat Mar 08 22:16:52 MST 2014
Try:

http://www.support.code-red-tech.com/CodeRedWiki/PostProcessApp
0 Kudos