structure padding
Marcel Moolenaar
marcel at xcllnt.net
Thu Jan 8 14:24:06 PST 2004
On Thu, Jan 08, 2004 at 09:14:10PM +0100, Dag-Erling Sm?rgrav wrote:
>
> However, a pid_t is an int, and sizeof int != sizeof long on Alpha.
> I'm not sure what will happen: will alignment rules cause gcc to add
> four bytes of padding before e_spare, conserving the size of struct
> kinfo_proc, or will struct kinfo_proc shrink by four bytes?
Padding will happen.
--
Marcel Moolenaar USPA: A-39004 marcel at xcllnt.net
More information about the freebsd-alpha
mailing list