Search code examples
c++cassemblyeclipse-cdtdisassembly

Eclipse disassembly view, can you view disassembly without debugging the program?


I was using the Eclipse-CDT "Disassembly" View while debugging a program (in the "Debugging" Perspective. I found useful the way that Eclipse-CDT has the source code display and assembly code display synchronized.

I would like to peruse the compiler generated assembly code while not running the debugger. I am interested in changing things like:

  • compiler flags (for example: -O0, -O1, -O2, -O3)
  • changing C code

And then observing the changes in the generated assembly code.

In Eclipse-CDT, can you view the disassembly without actively debugging the program, yes/no?

If yes, how?

Maybe Eclipse-CDT isn't the right tool for this. I seem to recall there is a way to prod the compiler into generating a verbose/readable assembly listing with line numbers and annotations back to the original source.


Solution

  • While in Eclipse-CDT, I just noticed that you can double-click on an object file and the assembly disably is produced. I will have to check this out.

    I know you can use the compiler to generate assembly listings too.

    I'm sure there are other tools too.