Optimal structure field ordering

John F. Haugh II jfh at rpp386.UUCP
Sat Jul 2 09:04:03 AEST 1988


In article <254 at obie.UUCP> wes at obie.UUCP (Barnacle Wes) writes:
>A little further though might show this idea to have some far-reaching
>bad karma.  It would be very difficult to write a file system portable
>across machines of varying architecture (i.e. Idris) if the compiler
>on each machine can arbitrarily re-arrange structures to suit its own
>whim.

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.

imagine if part of the strategy was that large sized code files
had their structures packed one way, while small sized code files went
a different way.  imagine worse still that the implementation didn't
have to tell you which one it picked!

- john.
-- 
John F. Haugh II                 +--------- Cute Chocolate Quote ---------
HASA, "S" Division               | "USENET should not be confused with
UUCP:   killer!rpp386!jfh        |  something that matters, like CHOCOLATE"
DOMAIN: jfh at rpp386.uucp          |             -- with my apologizes



More information about the Comp.lang.c mailing list