Show number of padding bytes in data structures

Daniel Jacobowitz drow@false.org
Thu May 3 02:40:00 GMT 2007


On Wed, May 02, 2007 at 06:21:15PM +0200, Frank Winklmeier wrote:
> thanks for your reply. I was hoping for a more efficient way for a large  
> number of classes and structs. Ideally, I would like to compare the number of 
> padding bytes for a library compiled in 32 and 64 bit and see how many bytes 
> got wasted for each data structure due to the different memory alignment.

You could write such a thing - the information is all there - but I am
not aware of any pre-existing tool.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list