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,af7d617cad40d0b X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: Problem with representation clause Date: 1997/12/09 Message-ID: <66jdsu$q9n$1@polo.advicom.net>#1/1 X-Deja-AN: 296576923 References: <66gvas$pmp@remus.rutgers.edu> Distribution: world X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: ADViCOM -- Advanced Internet Communications Newsgroups: comp.lang.ada Date: 1997-12-09T00:00:00+00:00 List-Id: Matthew Heaney wrote in message ... >In article <66gvas$pmp@remus.rutgers.edu>, castroto@remus.rutgers.edu >(Fabrizio Castrotorres) wrote: > >Try adding the Component_Size attribute too. > The Component_Size attribute makes no difference in the resulting size; The implementation advice of the Ada95 LRM 13.3(73) says An implementation should support specified Component_Sizes that are factors and multiples of the word size. For such Component_Sizes, the array should contain no gaps between components. For other Component_Sizes (if supported), the array should contain no gaps between components when packing is also specified; the implementation should forbid this combination in cases where it cannot support a no-gaps representation. Perhaps the operative words here are "advice" and "should" At any rate, a two dimensional array declared as type Global_Integrity_Array_2 is array( Slot_Number, Slot_Number ) of Measurement_Status_Value; pragma Pack(Global_Integrity_Array_2); yields a size of 1152 bits with gnat-3.10p David C. Hoos, Sr. david.c.hoos.sr@ada95.com