What does a compiled C++ class look like?

后端 未结 6 1249
醉话见心
醉话见心 2020-12-14 03:34

With some background in assemble instructions and C programs, I can visualize how a compiled function would look like, but it\'s funny I have never so carefully thought abou

6条回答
  •  执念已碎
    2020-12-14 03:53

    Try the

    g++ -S class.cpp

    That will give you an assembly file 'class.s' (text file) which you can read with a text editor. However, your code doesn't do anything (declaring a class doesn't generate code on its own) so you won't have much in the assembly file.

提交回复
热议问题