This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Show number of padding bytes in data structures


Hi Andi,

perfect! This is exactly what I was looking for.

Thanks a lot,
Frank



Andi Kleen wrote:
Daniel Jacobowitz <drow@false.org> writes:

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.

Google for "pahole".


-Andi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]