Article View: comp.std.c
Article #4308Re: REQ: Help with structs - accessing data
From: Arno Eigenwillig
Date: Sun, 29 Oct 1995 14:28
Date: Sun, 29 Oct 1995 14:28
14 lines
1033 bytes
1033 bytes
In article <46t5tb$ad0@wolfe.wimsey.com>, William Robert Night writes: > wondering if the ansi-C standard requires things to be aligned in a > certain way or if this is one of those things, like the size of 'int' > that is somewhat arbitrarily decided by compiler makers? The ANSI Standard allows compilers to insert padding as they see fit. As far as I remember, 80x86 CPUs do not require such padding, but on many CPUs proper alignment can speed up accesses; perhaps this is the case with 80x86s too and the reason for your compiler's behaviour. -- __ __/// Arno Eigenwillig /\ <arno@yaps.rhein.de> \/ PGP key \XX/ V+49-2225-5870 /\ <Arnooo @ #amigager> \/ available
Technical Details
Message-ID:
<iWRxx*4Sd@yaps.rhein.de>Path:
arc1-ca.pugleaf.net!rhaus.rhein.de!yaps!arnoReferences:
<46t5tb$ad0@wolfe.wimsey.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!rhaus.rhein.de!yaps!arno From: arno@yaps.rhein.de (Arno Eigenwillig) Newsgroups: comp.std.c Subject: Re: REQ: Help with structs - accessing data Message-ID: <iWRxx*4Sd@yaps.rhein.de> Date: Sun, 29 Oct 1995 15:28:18 +0100 References: <46t5tb$ad0@wolfe.wimsey.com> Organization: Yet Another Private Site in Meckenheim, Germany