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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7345e706c651a1a3,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g4g2000hsf.googlegroups.com!not-for-mail From: petter_fryklund@hotmail.com Newsgroups: comp.lang.ada Subject: pragma Pack does not work on GNAT 5.01a for Redhat Linux. Date: Tue, 19 Jun 2007 06:16:53 -0700 Organization: http://groups.google.com Message-ID: <1182259013.590515.118310@g4g2000hsf.googlegroups.com> NNTP-Posting-Host: 148.2.192.140 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1182259013 11629 127.0.0.1 (19 Jun 2007 13:16:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 19 Jun 2007 13:16:53 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g4g2000hsf.googlegroups.com; posting-host=148.2.192.140; posting-account=BR1rQA0AAADK6pcQTy1j-a-E35ZLMrdq Xref: g2news1.google.com comp.lang.ada:16237 Date: 2007-06-19T06:16:53-07:00 List-Id: The Size of the following record is 112 on Linux, but 104 on Solaris. type Something is record A : Packed_16; B : Packed_8; C : Packed_8; D : Packed_8; E : Packed_32; F : Packed_32; end record; pragma Pack (Something); Where type Packed_Byte is mod 2 **8; for Packed_Byte'Size use 8; type Packed_Bytes is array (Natural range <>) of Packed_Byte; for Packed_Bytes'Alignment use 1; for Packed_Bytes'Component_Size use Packed_Byte'Size; type Packed_8 is new Packed_Bytes (0 .. 0); for Packed_8'Size use 8; and similar. Why is pragma Pack ignored? TIA /Petter