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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,81b62fa6e95ab58b X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: aliased & packed? Date: 1997/05/12 Message-ID: #1/1 X-Deja-AN: 241099959 References: <5l5llv$4e@lotho.delphi.com> <3376B2F0.7CE4@bix.com> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-05-12T00:00:00+00:00 List-Id: Tom Moran says <) of aliased char; pragma Pack(char array); to work?>> Of course it will work. But what do you mean by working? There is no requirement in this case that the pragma Pack have any effect. Indeed on most byte addressable machines, the pragma Pack will have no effect anyway. with GNAT, pragma Pack never has any effect if the components are aliased, and indeed you will get a warning that the pragma Pack is ignored. However, it is not silly to put it in necessarily, since you can imagine a machine that allows independent addressability of characters, but still has a cost associated with 8-bit packing of characters. The old alpha comes close to being like that, but actually on the Alpha, we decide to pack this by default anyway.