GP2X How To Get Gcc To Output List Files


deluded

Member
Joined
Sep 28, 2007
Messages
162
Anyone know the magic options to get arm-open2x-linux-gcc to output a list file with the assembler instructions against each line of C??

I'm using the current open2x sdk, and trying to optimise a bit of code.
 
'-save-temps' I think, but I prefer to just compile with debug info and use 'objdump' as it gets rid of all the gcc'ism in the code and makes it more readable.
 
erm - cool - how do I do that??

(feel free to tell me to stop being lazy and search for it :) )
 
-g compiles with debug info
then 'objdump' is part of the gcc toolchain, so should be in your path.
 
Works great.

It's

arm-open2x-linux-objdump -S yourfile.o > output.txt

for anyone else interested.
 
Back
Top