home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / std / c / 3436 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.9 KB  |  40 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!think.com!paperboy.osf.org!meissner
  3. From: meissner@osf.org (Michael Meissner)
  4. Subject: Re: Structure walking
  5. In-Reply-To: diamond@jit345.bad.jit.dec.com's message of Wed, 27 Jan 1993 01:46:43 GMT
  6. Message-ID: <MEISSNER.93Jan27120802@tiktok.osf.org>
  7. Sender: news@osf.org (USENET News System)
  8. Organization: Open Software Foundation
  9. References: <1993Jan25.213543.25499@pony.Ingres.COM> <565@heimdall.sdrc.com>
  10.     <1993Jan27.014643.21507@nntpd.lkg.dec.com>
  11. Date: 27 Jan 93 12:08:02
  12. Lines: 26
  13.  
  14. In article <1993Jan27.014643.21507@nntpd.lkg.dec.com> diamond@jit345.bad.jit.dec.com (Norman Diamond) writes:
  15.  
  16. | In article <565@heimdall.sdrc.com> scjones@thor.sdrc.com (Larry Jones) writes:
  17. | >In article <1993Jan25.213543.25499@pony.Ingres.COM>, mikes@Ingres.COM (Mike Schilling) writes:
  18. | >> (e) The alignment required by the structure is equal to the most restrictive
  19. | >>     alignment of any of its members.
  20. | >True, but see (a).
  21. | Well Mr. Jones, you and I seem to be the only people who feel this way.
  22. | Most of the regulars in this group felt that even a structure like this:
  23. |    struct mychar { char x; }
  24. | might be given an alignment requirement of 32 by some compiler, even if
  25. | char only requires an alignment of 1 under the same compiler.  Of course,
  26. | I only saw this on Usenet; you've seen the committee's deliberations.
  27.  
  28. True, and I even made a compiler that did this.  The compiler was on a
  29. word machine (the Data General MV/Eclipse).  All structures had to
  30. have word alignment, even if the members were only character.  This
  31. was necessary because of the requirement that all structure pointers
  32. look the same, to allow pointers to unknown structures to be declared.
  33. --
  34. Michael Meissner    email: meissner@osf.org        phone: 617-621-8861
  35. Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
  36.  
  37. You are in a twisty little passage of standards, all conflicting.
  38.