Is there a tool, may开发者_如何学Cbe a plugin for visual Studio or so, that visualizes for me the memoryalignment of my classes and structs?
thx!
You might be interested in using Cruncher#.
Reference: original Maciej Sinilo blog post about Cruncher#.
While it doesn't apply to windows, the Linux tool PaHole, part of the 'dwarves' package on common Linux distributions, provides structure and class alignement information based on the DWARF2 debug information in ELF files.
It is embedded into Visual Studio Debugger. It's called "Watch". You can see the address of each item if you "+" some class instance name.
精彩评论