home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18500 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.2 KB  |  31 lines

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