<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. 编译对象的布局

        Layout of compiled objects(编译对象的布局)
        <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)

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

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Consistent pseudo-random numbers across platforms(跨平台一致的伪随机数)
                  Vary range of uniform_int_distribution(改变uniform_int_distribution的范围)
                  What is a seed in terms of generating a random number?(就生成随机数而言,种子是什么?)
                  Is 1.0 a valid output from std::generate_canonical?(1.0 是 std::generate_canonical 的有效输出吗?)
                  Getting big random numbers in C/C++(在 C/C++ 中获取大随机数)
                  What is the best way to generate random numbers in C++?(在 C++ 中生成随机数的最佳方法是什么?)

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

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

                      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>
                          • <legend id='HeFzt'><style id='HeFzt'><dir id='HeFzt'><q id='HeFzt'></q></dir></style></legend>