Mat
Mat

Reputation: 11883

c++ tool for visualising memory alignment?

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

Answers (3)

John de Largentaye
John de Largentaye

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

Gregory Pakosz
Gregory Pakosz

Reputation: 70204

You might be interested in using Cruncher#.

Reference: original Maciej Sinilo blog post about Cruncher#.

Upvotes: 2

alemjerus
alemjerus

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

Related Questions