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?
You want the syntax intel. I believe this is achieved with
intel
-masm=intel
EDIT
Of course, you can also use objdumpfor this:
objdump
objdump -M intel -d <binary>