Reputation: 11883
Is there a tool, maybe a plugin for visual Studio or so, that visualizes for me the memoryalignment of my classes and structs?
thx!
Upvotes: 7
Views: 3050
Reputation: 1073
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.
Upvotes: 1
Reputation: 70204
You might be interested in using Cruncher#.
Reference: original Maciej Sinilo blog post about Cruncher#.
Upvotes: 2
Reputation: 8268
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.
Upvotes: 0