From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bfda446dad8e3c75 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-25 06:11:43 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: Can alignment of tagged obj depend on size? Date: 25 Jan 2002 06:11:43 -0800 Organization: http://groups.google.com/ Message-ID: <4519e058.0201250611.22cfbac9@posting.google.com> References: <3c50db2a.1393453@news.tc.umn.edu> NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1011967903 24147 127.0.0.1 (25 Jan 2002 14:11:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 25 Jan 2002 14:11:43 GMT Xref: archiver1.google.com comp.lang.ada:19305 Date: 2002-01-25T14:11:43+00:00 List-Id: puk @ umn._edu_ (Paul Pukite) wrote in message news:<3c50db2a.1393453@news.tc.umn.edu>... > I understand why tagged types have unique properties > with respect to data alignment. But I have trouble > following why one particular compiler varies the alignment > based on a component's size. One might take a further step and ask why you care. In Ada, if you care about such things, you use representation clauses to force the issue. Otherwise, you are telling the compiler to store it any way it wants. If you don't give any rep clauses and the compiler chooses some bizzare (to you) alginment and ordering, that's its business.