For 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
(replace XXX
with the class name)
More Related Contents:
- Visual C++ equivalent of GCC’s __attribute__ ((__packed__))
- Difference in performance between MSVC and GCC for highly optimized matrix multplication code
- Inherit interfaces which share a method name
- Linking to MSVC DLL from MinGW
- How do I temporarily disable a macro expansion in C/C++?
- Measuring exception handling overhead in C++
- Should C compilers immediately free "further unused" memories? [closed]
- Questions regarding constructors
- Why is GCC saying multiple definitions of main? I have one main [closed]
- How does the Import Library work? Details?
- How does #include work in C++? [duplicate]
- GCC -fPIC option
- Using C++ library in C code
- What is __gxx_personality_v0 for?
- __builtin_prefetch, How much does it read?
- placement new and delete
- How to get screenshot of a window as bitmap object in C++?
- what does __declspec(dllimport) really mean?
- Cross Platform Floating Point Consistency
- GCC, stringification, and inline GLSL?
- Do I need to protect read access to an STL container in a multithreading environment?
- GCC: Difference between -O3 and -Os
- Using bts assembly instruction with gcc compiler
- VC++ fatal error LNK1168: cannot open filename.exe for writing
- Using bind1st for a method that takes argument by reference
- What does exactly the warning mean about hidden symbol being referenced by DSO?
- How to tell if a lib was compiled with /mt or /md?
- C++ static initialization vs __attribute__((constructor))
- How to force GCC to assume that a floating-point expression is non-negative?
- Where can I find an official reference listing the operation of SSE intrinsic functions?