Date: Sat, 15 Sep 2001 11:03:37 -0700 From: "David O'Brien" <dev-null@NUXI.com> To: Yar Tikhiy <yar@freebsd.org> Cc: Mike Smith <msmith@freebsd.org>, hackers@freebsd.org, msmith@mass.dis.org Subject: Re: Driver structures & alignment Message-ID: <20010915110337.B53569@dragon.nuxi.com> In-Reply-To: <20010914122344.A38530@snark.rinet.ru>; from yar@freebsd.org on Fri, Sep 14, 2001 at 12:23:44PM %2B0400 References: <yar@freebsd.org> <200109132309.f8DN9vX03967@mass.dis.org> <20010914122344.A38530@snark.rinet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 14, 2001 at 12:23:44PM +0400, Yar Tikhiy wrote: > E.g., will the following structure: > struct foo { > }; > contain alignment holes in any architecture/compiler? It is best to order this from largest to smallest size if you are worried about alignment holes, etc. int64_t d; /* 8-byte boundary */ int32_t c; /* 4-byte boundary */ int32_t f; /* 4-byte boundary */ int16_t a; int16_t b; int8_t e[4]; -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010915110337.B53569>