shuttle87
shuttle87

Reputation: 15964

gcc assembly output

I'm wanting to look at the assembly output from a particular piece of code and generally I prefer reading nasm syntax compared to AT&T syntax. Is there a convenient way to get nasm assembly format output from gcc?

Upvotes: 6

Views: 3536

Answers (1)

cnicutar
cnicutar

Reputation: 182774

You want intel syntax. I believe it's achieved with

-masm=intel

EDIT

Of course, you can also use objdump for this:

objdump -M intel -d <binary>

Upvotes: 10

Related Questions