开发者

c++ tool for visualising memory alignment?

开发者 https://www.devze.com 2022-12-15 03:23 出处:网络
Is there a tool, may开发者_如何学Cbe a plugin for visual Studio or so, that visualizes for me the memoryalignment of my classes and structs?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消