This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Show number of padding bytes in data structures
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