View assembly function code in emacs

I am wondering if there is a package for emacs that will allow me to quickly view the generated assembly code? This should also work with compiler optimization. I would like to be able with one command to open a new buffer that will contain the assembly code of the current function.

Xcode on OS X does it very nicely, but I would like to return to Linux and emacs on my dev workstation, and this is a feature that I learned a lot.

+7
gcc emacs ide clang
source share
1 answer

Try disaster.el :

Disaster screenshot

Disaster allows you to press Cc d to view the compiled assembler code for the C / C ++ file that you are currently editing. It even jumps and selects the assembly line corresponding to the line under your cursor.

It works by creating a .o file using make (if you have a Makefile) or the default system compiler. He then runs this file through objdump to create a human readable compilation.

disaster.el is available at MELPA .

+7
source share

All Articles