Re: [ROOT] About the size of struct in ROOT

From: Pascal Mantran (pmantran@clamart.oilfield.slb.com)
Date: Tue Apr 01 2003 - 13:16:07 MEST






  


The size difference may come from the machine architecture:
On RISC based chips, such as a Sun Sparc, all elements are aligned on an
address multiple of the element size, e.g. a double is aligned on address
multiple of 8. If your struct contain a char followed by a double, you may
have gaps in the struct to fulfill the alignment condition.


Huang Xingtao wrote:
I use the Root (3.01/06) package. I meet the following problem. The size of the struct gived by ROOT is greater than the sum of size of all the type in the struct. I don't know how to calculat it in the ROOT. 




This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET