Optimal structure field ordering

00704a-Liber nevin1 at ihlpf.ATT.COM
Fri Jul 8 09:45:10 AEST 1988


In article <3459 at rpp386.UUCP> jfh at 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.
/  (_</_\/ <__/ / <_	These are solely MY opinions, not AT&T's, blah blah blah



More information about the Comp.lang.c mailing list