Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 501
Mat Avatar asked Jan 03 '10 12:01

Mat


2 Answers

You might be interested in using Cruncher#.

Reference: original Maciej Sinilo blog post about Cruncher#.

like image 113
Gregory Pakosz Avatar answered Oct 15 '22 05:10

Gregory Pakosz


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.

like image 27
John de Largentaye Avatar answered Oct 15 '22 06:10

John de Largentaye