<tfoot id='EwqKX'></tfoot>
      <i id='EwqKX'><tr id='EwqKX'><dt id='EwqKX'><q id='EwqKX'><span id='EwqKX'><b id='EwqKX'><form id='EwqKX'><ins id='EwqKX'></ins><ul id='EwqKX'></ul><sub id='EwqKX'></sub></form><legend id='EwqKX'></legend><bdo id='EwqKX'><pre id='EwqKX'><center id='EwqKX'></center></pre></bdo></b><th id='EwqKX'></th></span></q></dt></tr></i><div id='EwqKX'><tfoot id='EwqKX'></tfoot><dl id='EwqKX'><fieldset id='EwqKX'></fieldset></dl></div>
    1. <small id='EwqKX'></small><noframes id='EwqKX'>

      • <bdo id='EwqKX'></bdo><ul id='EwqKX'></ul>
      1. <legend id='EwqKX'><style id='EwqKX'><dir id='EwqKX'><q id='EwqKX'></q></dir></style></legend>

      2. 编译对象的布局

        时间:2023-06-04
        <tfoot id='Istz8'></tfoot>
        1. <small id='Istz8'></small><noframes id='Istz8'>

              <legend id='Istz8'><style id='Istz8'><dir id='Istz8'><q id='Istz8'></q></dir></style></legend>
                <tbody id='Istz8'></tbody>
                <bdo id='Istz8'></bdo><ul id='Istz8'></ul>

                • <i id='Istz8'><tr id='Istz8'><dt id='Istz8'><q id='Istz8'><span id='Istz8'><b id='Istz8'><form id='Istz8'><ins id='Istz8'></ins><ul id='Istz8'></ul><sub id='Istz8'></sub></form><legend id='Istz8'></legend><bdo id='Istz8'><pre id='Istz8'><center id='Istz8'></center></pre></bdo></b><th id='Istz8'></th></span></q></dt></tr></i><div id='Istz8'><tfoot id='Istz8'></tfoot><dl id='Istz8'><fieldset id='Istz8'></fieldset></dl></div>

                  本文介绍了编译对象的布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有没有办法—很像用gcc -E查看预处理结果—看看我的对象在编译成目标文件后是什么样子?

                  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?

                  我说的是 GCC,但包含 MSVC 的解决方案就可以了.

                  I am talking about GCC, but a solution including MSVC would be fine.

                  推荐答案

                  对于 Visual C++:

                  我终于设法使用来自 这里 和 此处.他们在这里:

                  I finally managed to dig up the (well-hidden!) undocumented compiler flags that MSVC++ supports using information from here and here. Here they are:

                  /d1reportSingleClassLayoutXXX
                  /d1reportAllClassLayout
                  

                  (用类名替换XXX)

                  这篇关于编译对象的布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在 Visual Studio 中的项目之间共享预编译头文件 下一篇:C++ 包含和导入的区别

                  相关文章

                  <small id='HeFzt'></small><noframes id='HeFzt'>

                  <tfoot id='HeFzt'></tfoot>
                    <bdo id='HeFzt'></bdo><ul id='HeFzt'></ul>

                    1. <i id='HeFzt'><tr id='HeFzt'><dt id='HeFzt'><q id='HeFzt'><span id='HeFzt'><b id='HeFzt'><form id='HeFzt'><ins id='HeFzt'></ins><ul id='HeFzt'></ul><sub id='HeFzt'></sub></form><legend id='HeFzt'></legend><bdo id='HeFzt'><pre id='HeFzt'><center id='HeFzt'></center></pre></bdo></b><th id='HeFzt'></th></span></q></dt></tr></i><div id='HeFzt'><tfoot id='HeFzt'></tfoot><dl id='HeFzt'><fieldset id='HeFzt'></fieldset></dl></div>
                    2. <legend id='HeFzt'><style id='HeFzt'><dir id='HeFzt'><q id='HeFzt'></q></dir></style></legend>