Layout of compiled objects

后端 未结 6 689
余生分开走
余生分开走 2020-12-01 01:57

Is there a way—much like viewing the result of preprocessing with gcc -E—to see what my objects look like once compiled into object files?

I

6条回答
  •  佛祖请我去吃肉
    2020-12-01 02:20

    Object files contain binary data - the only higher level that most compilers can output is assembler, so if you can't read that you are out of luck. However, take a look at this question for more info in this area.

提交回复
热议问题