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=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e4d318dc27be1451,start X-Google-Attributes: gid103376,public From: "C. Berg (602) 436-5290" Subject: Pragma pack Date: 1997/03/10 Message-ID: <01IGC5R855Z6001KU2@EMAIL.AZ.HONEYWELL.COM>#1/1 X-Deja-AN: 224552378 Sender: Ada programming language Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU X-VMS-To: EMAIL::IN%"INFO-ADA@LISTSERV.NODAK.EDU" Newsgroups: comp.lang.ada Date: 1997-03-10T00:00:00+00:00 List-Id: I have some questions for the list Ada gods regarding the use of pragma pack (this is from Ada '83 land). If you have a record similar to the following: type blah is record field_1 : field_1_type; field_2 : field_2_type; end record; What is the difference (to an individual record like this) between employing a pragma pack on this record alone, without packing its component fields, and not using a pack at all? For example, will a variable declared to be of this record type be the exact same size with only the "highest" level pack as with no packs at all? Also, while I would assume that a 'Size attribute will dynamically reflect the effect of pragma pack on a type, can anybody confirm to me that this is actually true, and does the same go for the USE clause? I realize that implementations of pragmas are more or less up the compiler writers, so any input, rules of thumb, references, etc, are welcome.... Thanks in advance, - Cory (any expressed opinions are mine alone, disclaimer, disclaimer....)