Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gcc assembly output

Tags:

gcc

assembly

nasm

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?

like image 445
shuttle87 Avatar asked May 15 '11 08:05

shuttle87


1 Answers

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>
like image 179
cnicutar Avatar answered Nov 28 '22 18:11

cnicutar