Gcc output

I want to look at the assembly from a specific piece of code, and usually prefer to read the nasm syntax compared to the AT & T syntax. Is there a convenient way to get the nasm assembly format from gcc?

+5
source share
1 answer

You want the syntax intel. I believe this is achieved with

-masm=intel

EDIT

Of course, you can also use objdumpfor this:

objdump -M intel -d <binary>
+8
source

All Articles