Break down C++ code size

前端 未结 7 1909
心在旅途
心在旅途 2021-02-04 10:51

I\'m looking for a nice Stack Overflow-style answer to the first question in the old blog post C++ Code Size, which I\'ll repeat below:

I’d

7条回答
  •  囚心锁ツ
    2021-02-04 11:37

    I don't know if it will help but there is a gcc flag to write the assembly code it generates to a text file for your examination.

    "-S Used in place of -c to cause the assembler source file to be generated, using .s as the extension, instead of the object file. This may be useful if you need to examine the generated assembly code. "

提交回复
热议问题