This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: size mismatch with unsigned long long
- To: nitya at alpha dot ece dot ucsb dot edu
- Subject: Re: size mismatch with unsigned long long
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Mon, 3 Jul 2000 00:17:45 +0200
- CC: gcc at gcc dot gnu dot org
- References: <200007022010.NAA12104@alpha.ece.ucsb.edu>
> Can ANYONE shed some light on this .. unfortunately, this messes
> up a lot of the other structures that rely on this struct so I
> really need to fix this.
A structure of a certain size will always be padded to a multiple of
the member with the biggest alignment, so that in arrays of that
structure, all members are sufficiently aligned. In your case, the
field with the biggest alignment requirement is ts (8), so the
structure will be a multiple of 8 in size.
Regards,
Martin