How can I compile to assembly with gcc

前端 未结 3 1763
挽巷
挽巷 2020-12-29 02:08

How do I compile to assembly instead of an executable with gcc. I know there is an -S flag, but where do I use it in the makefile. For example, if I use fla

3条回答
  •  [愿得一人]
    2020-12-29 02:49

    Put it pretty much anywhere.

    gcc -O3 -S -o output.asm ...
    

    will store the generated assemby in output.asm.

提交回复
热议问题