Content originally posted in LPCWare by igorsk on Fri Jan 22 03:01:35 MST 2010
Here's another option. Go to project properties, C/C++ Build, Settings, expand MCU C Compiler, Miscellaneous and add the following into the flag field:
-Wa,-ahlnds=${OutputFileBaseName}.asm
This will generate the asm file during compilation, so it will contain more information from the source, even for optimized builds.