Path: utzoo!attcan!uunet!lll-winken!pacbell!att!ihnp4!ihlpf!nevin1
From: nevin1@ihlpf.ATT.COM (00704a-Liber)
Newsgroups: comp.lang.c
Subject: Re: Optimal structure field ordering
Message-ID: <5233@ihlpf.ATT.COM>
Date: 7 Jul 88 23:45:10 GMT
References: <163@navtech.uucp> <806@garth.UUCP> <254@obie.UUCP> <3459@rpp386.UUCP>
Reply-To: nevin1@ihlpf.UUCP (00704a-Liber,N.J.)
Organization: AT&T Bell Laboratories - Naperville, Illinois
Lines: 14

In article <3459@rpp386.UUCP> jfh@rpp386.UUCP (The Beach Bum) writes:
>it could be serious for any language to not specify how it rearranges
>structures.  it could make it impossible for separate compilation to
>work, period.

Not quite true.  As long as the compiler internally arranges the fields in
a structure the same way, no problems occur.  There is no need for you, the
user of a compiler, to know what order fields are stored in, as long as the
compiler is self-consistent (unless you are doing something like a block
move into a structure).
-- 
 _ __			NEVIN J. LIBER	..!ihnp4!ihlpf!nevin1	(312) 510-6194
' )  )				You are in a little twisting maze of
 /  / _ , __o  ____		 email paths, all different.
/  (_