home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 17055 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.2 KB

  1. Path: sparky!uunet!ogicse!emory!gatech!concert!sas!mozart.unx.sas.com!sasghm
  2. From: sasghm@theseus.unx.sas.com (Gary Merrill)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Is this ANSI?
  5. Message-ID: <By6pC6.3u7@unx.sas.com>
  6. Date: 23 Nov 92 19:40:53 GMT
  7. Article-I.D.: unx.By6pC6.3u7
  8. References: <9eRguB1w165w@quest.UUCP> <24238@alice.att.com> <By0vu2.7AF@unx.sas.com> <24262@alice.att.com> <By6HMs.I4r@unx.sas.com> <1992Nov23.180808.19157@ncsu.edu>
  9. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  10. Organization: SAS Institute Inc.
  11. Lines: 13
  12. Originator: sasghm@theseus.unx.sas.com
  13. Nntp-Posting-Host: theseus.unx.sas.com
  14.  
  15.  
  16. In article <1992Nov23.180808.19157@ncsu.edu>, jlnance@eos.ncsu.edu (JAMES LEWIS NANCE) writes:
  17.  
  18. |> I asked my C mentor about this once, and he pointed out that the compiler is
  19. |> free to store the members of the structure in any order.  Thus the compiler 
  20.  
  21. Nonsense.  See section 3.5.2.1: "Within a structure object, the
  22. non-bit-field members and the units in which bit-fields reside have
  23. addresses that increase in the order in which they are declared."
  24. -- 
  25. Gary H. Merrill  [Principal Systems Developer, C Compiler Development]
  26. SAS Institute Inc. / SAS Campus Dr. / Cary, NC  27513 / (919) 677-8000
  27. sasghm@theseus.unx.sas.com ... !mcnc!sas!sasghm
  28.