D deluded Member Joined Sep 28, 2007 Messages 162 Nov 7, 2007 #1 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.
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.
S Squidge Certified Guru Joined Nov 16, 2003 Messages 8,493 Location UK Website Visit site Nov 7, 2007 #2 '-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.
'-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.
D deluded Member Joined Sep 28, 2007 Messages 162 Nov 7, 2007 #3 erm - cool - how do I do that?? (feel free to tell me to stop being lazy and search for it )
S Squidge Certified Guru Joined Nov 16, 2003 Messages 8,493 Location UK Website Visit site Nov 8, 2007 #4 -g compiles with debug info then 'objdump' is part of the gcc toolchain, so should be in your path.
D deluded Member Joined Sep 28, 2007 Messages 162 Nov 8, 2007 #5 Works great. It's arm-open2x-linux-objdump -S yourfile.o > output.txt for anyone else interested.