How to generate a nasm compilable assembly code from c source code on Linux?

后端 未结 3 953

Test platform is 32 bit Linux.

Basically, I know gcc can be used to generate both Intel and At&T style assembly code, but it seems that you can not<

3条回答
  •  -上瘾入骨i
    2020-12-04 10:55

    If you're lazy: https://github.com/diogovk/c2nasm

    There I have a script that does Babken Vardanyan's suggestion automatically.

提交回复
热议问题