🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #161

Re: Character arrays in structures and address alignment -- any standard?

#161
From: Rick Schubert
Date: Wed, 12 Aug 1992 01:11
18 lines
1256 bytes
In <1992Aug9.230910.16565@sq.sq.com> msb@sq.sq.com (Mark Brader) writes:

>> > "There may be [therefore] unnamed padding within a structure object, but
>> >  not at its beginning, as necessary to achieve the appropriate alignment."
>> 
>> This wording was chosen very carefully -- in particular, the use of
>> "appropriate" as opposed to "necessary".  It is the implementor who
>> decides what alignment is "appropriate", so anything goes.

>This is a curious remark, considering that the quoted passage *does*
>include the word "necessary".

But it says "necessary to achieve the appropriate alignment." 
             ^^^^^^^^^                ^^^^^^^^^^^

This isn't the same thing as "to achieve the necessary alignment."

-- Rick Schubert (rick.schubert@SanDiegoCA.NCR.COM)
Technical Details
Message-ID: <5646@npg-sd.SanDiegoCA.NCR.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!ncr-sd!npg-sd!rns
References: <7022@skye.ed.ac.uk> <14382@ksr.com> <1947@sdrc.COM> <1992Aug9.230910.16565@sq.sq.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!ncr-sd!npg-sd!rns
From: rns@npg-sd.SanDiegoCA.NCR.COM (Rick Schubert)
Newsgroups: comp.std.c
Subject: Re: Character arrays in structures and address alignment -- any standard?
Message-ID: <5646@npg-sd.SanDiegoCA.NCR.COM>
Date: 12 Aug 92 01:11:30 GMT
References: <7022@skye.ed.ac.uk> <14382@ksr.com> <1947@sdrc.COM> <1992Aug9.230910.16565@sq.sq.com>
Organization: NCR Corp., Network Products - San Diego
Lines: 18