Layout of compiled objects

后端 未结 6 686
余生分开走
余生分开走 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:10

    A constructor is just another function (unless it's in-lined). Object files contain a lot of info for the linker; so you should be able to find the function in the .a file (the function names will be mangled though).

提交回复
热议问题