home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!psinntp!dg-rtp!batman!goudreau
- From: goudreau@batman.rtp.dg.com (Bob Goudreau)
- Subject: Re: Is this ANSI?
- Message-ID: <1992Dec16.194815.11627@dg-rtp.dg.com>
- Sender: usenet@dg-rtp.dg.com (Usenet Administration)
- Date: Wed, 16 Dec 92 19:48:15 GMT
- References: <1992Dec1.225840.719@thinkage.on.ca> <Byr66A.A2A@unx.sas.com> <1992Dec15.204100.4293@thinkage.on.ca>
- Organization: Data General Corporation, RTP, NC
- Lines: 19
-
- In article <1992Dec15.204100.4293@thinkage.on.ca> atbowler@thinkage.on.ca (Alan Bowler) writes:
- >>|>
- >>|> True. The compiler is not free to juggle the order withing a
- >>|> struct, but as a rule of thumb you you program as if it did have
- >>|> that freedom.
- >>
- >>Huh? Why should you do this? What do you gain by doing so? ...
- >>
- >Because at a later time you may want to reorder the structure so that
- >it gives you better performance on a different machine.
-
- But doing this would appear to break your aforementioned "rule of
- thumb". You can't have it both ways.
-
-
- ----------------------------------------------------------------------
- Bob Goudreau Data General Corporation
- goudreau@dg-rtp.dg.com 62 Alexander Drive
- +1 919 248 6231 Research Triangle Park, NC 27709, USA
-