开发者

gcc assembly output

开发者 https://www.devze.com 2023-03-05 19:31 出处:网络
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 synta开发者_运维问答x. Is there a convenient way to get 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 synta开发者_运维问答x. Is there a convenient way to get nasm assembly format output from gcc?


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>
0

精彩评论

暂无评论...
验证码 换一张
取 消