🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #20579

Re: Sorting struct members for alignment (was Re: Unaligned Acc

#20579
From: Devin_E_Ben-Hur
Date: Tue, 28 Mar 1989 23:44
11 lines
1055 bytes
[discussions of reordering C structures deleted...]

Sorry, folks, this is from K&R I, p196, "8.5 Structure and union declarations
... Within a structure, the objects declared have addresses which increase
as their declarations are read left-to-right."

There is similar language in the pANS and K&R II.  Reordering C structure
members has never been and is not now correct behavior for a C compiler.

Devin_Ben-Hur@Cup.Portal.Com
...ucbvax!sun!portal!cup.portal.com!devin_ben-hur
Technical Details
Message-ID: <16360@cup.portal.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!portal!cup.portal.com!Devin_E_Ben-Hur
References: <37196@bbn.COM> <1989Mar16.190043.23227@utzoo.uucp> <24889@amdcad.AMD.COM> <355@bnr-fos.UUCP> <13@microsoft.UUCP> <362@bnr-fos.UUCP> <59@microsoft.UUCP> <11118@pur-ee.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!portal!cup.portal.com!Devin_E_Ben-Hur
From: Devin_E_Ben-Hur@cup.portal.com
Newsgroups: comp.arch
Subject: Re: Sorting struct members for alignment (was Re: Unaligned Acc
Message-ID: <16360@cup.portal.com>
Date: 28 Mar 89 23:44:07 GMT
References: <37196@bbn.COM> <1989Mar16.190043.23227@utzoo.uucp> <24889@amdcad.AMD.COM> <355@bnr-fos.UUCP> <13@microsoft.UUCP> <362@bnr-fos.UUCP> <59@microsoft.UUCP> <11118@pur-ee.UUCP>
Organization: The Portal System (TM)
Lines: 11