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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8201deea80f1752a X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: 3-bit array ... Date: 1999/12/07 Message-ID: <82hlkq$968$1@nnrp1.deja.com>#1/1 X-Deja-AN: 557299380 References: <382386fe.85782690@news.uswest.net> <384728ff.588431360@news.uswest.net> <3847EF64.EBD41169@callnetuk.com> X-Http-Proxy: 1.0 x26.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Dec 07 00:50:35 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-12-07T00:00:00+00:00 List-Id: In article , Robert A Duff wrote: > GNAT has always > supported packing to the 3-bit level. AverStar's front end, and the > Green Hills compiler that uses AverStar's FE, used to use 4, but now > uses 3, due to customer demand for it. That's what this whole > discussion has been about. > > There's also the issue of whether you can say: > > for T2'Component_Size use 3; > > instead of the pragma Pack above. I must say I wonder if the GNAT (and now Averstar) decision is the right one. It would have been cleaner to say Pack always means 4, and you use a component size clause if you want 3. But the gods of legacy Ada 83 code definitely demand significant sacrifices, so this is one of them. Bob, how far did Averstar go, did you just do 3 bits? In GNAt we close pack all sizes up to 64. (e.g. an array of Natural gets packed to 31, which can be quite a surprise, although the pragma Pack in this case is junk!) Sent via Deja.com http://www.deja.com/ Before you buy.