Learning to read GCC assembler output

前端 未结 6 1410
长情又很酷
长情又很酷 2021-01-30 01:03

I\'m considering picking up some very rudimentary understanding of assembly. My current goal is simple: VERY BASIC understanding of GCC assembler output when co

6条回答
  •  死守一世寂寞
    2021-01-30 01:33

    You should use GCC's -fverbose-asm option. It makes the compiler output additional information (in the form of comments) that make it easier to understand the assembly code's relationship to the original C/C++ code.

提交回复
热议问题