Easy way to convert c code to x86 assembly?

前端 未结 9 1741
礼貌的吻别
礼貌的吻别 2021-01-30 23:44

Is there an easy way (like a free program) that can covert c/c++ code to x86 assembly?

I know that any c compiler does something very similar and that I can just compile

相关标签:
9条回答
  • 2021-01-31 00:24

    As many people point out most compilers will do that. If you don't like the syntax,a bit of work with awk or sed should be able to translate. Or I'd be surprised if there wasn't a program that did that bit for you already written somewhere.

    0 讨论(0)
  • 2021-01-31 00:25

    if you are using gcc as a compiler, you can compile with the -S option to produce assembly code. see http://www.delorie.com/djgpp/v2faq/faq8_20.html

    0 讨论(0)
  • 2021-01-31 00:29

    In VC++ the following command can be used to list the assembly code.

    cl /FAs a.c

    0 讨论(0)
提交回复
热议问题