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