Easy way to convert c code to x86 assembly?

前端 未结 9 1748
礼貌的吻别
礼貌的吻别 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:14

    The lcc compiler is a multiplatform cross-compiler. You can get it to produce Intel syntax assembly code by

    lcc -S -Wf-target=x86/win32 foo.c
    

    I find assembly code from lcc significantly easier to read than what gcc spits out nowawadays.

提交回复
热议问题