Subject: Re: CVS commit: basesrc/usr.bin/file
To: None <itojun@iijlab.net>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: tech-userlevel
Date: 06/05/2002 11:27:14
itojun@iijlab.net writes:

> 	i've heard that some of embedded compilers even reorder members...
> 	(maybe it is just for some embedded C compiler, but it worries me)

Reordering members of a structure is a violation of the C standard -
section 6.2.5.20 of C99 requires that members of a structure be
sequentially allocated (though padding, if any, is left to the
implementation). There may be compilers that do it, but for the time
being I see no reason to even think about catering to that level of
brokenness.

        - Nathan