comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Q re pack & aliased
Date: Tue, 22 Apr 2003 22:25:43 GMT
Date: 2003-04-22T22:25:43+00:00	[thread overview]
Message-ID: <Hjjpa.47142$Si4.29509@rwcrnsc51.ops.asp.att.net> (raw)
In-Reply-To: wccbryyi4uy.fsf@shell01.TheWorld.com

>Seems like the old and new behavior are the same.  In both versions, the
>compiler refuses to pack aliased 24-bit components.  Or did I
>misunderstand the ealier posting?
  3.15p (& 3.16a) refuses to pack.  It generates a warning and then
ignores the pragma pack.  Replacing pragma pack with "'component_size
use 24" causes a fatal compilation error.
Prior to 3.15, it packed automatically without being asked (the
components have for xxx'size use 24, which I thought suggests that
I want them to be 24, not 32, bits.).  Janus similarly automatically
packs.  I tried it on OA 7.2.2 where pragma pack is silently ignored,
but 'component_size is properly obeyed without complaint.

>But it's not fine to make X.all slow even when X points to a component
>of an unpacked array, or into the heap.
  It's even less fine to make the program no longer run.  Something about
"make it work right, then worry about speed" ;)

  The original question was "How can I get around this limitation."
System.Address_To_Access_Conversions comes to mind, but seems awfully
heavy handed.  Compiling with no optimization makes no difference.



  reply	other threads:[~2003-04-22 22:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-20  1:08 Q re pack & aliased tmoran
2003-04-20 11:40 ` David Holm
2003-04-21  4:44   ` tmoran
2003-04-22 16:08     ` Jacob Sparre Andersen
2003-04-22 16:30       ` Vinzent Hoefler
2003-04-22 16:44         ` tmoran
2003-04-22 17:23           ` Stephen Leake
2003-04-22 21:45             ` Robert A Duff
2003-04-22 22:25               ` tmoran [this message]
2003-04-22 23:10                 ` Nick Roberts
2003-04-23  0:24                   ` tmoran
2003-04-23  8:07                     ` Vinzent Hoefler
2003-04-23 17:18                       ` tmoran
2003-04-23 19:28                         ` Vinzent Hoefler
2003-04-23 11:52                     ` Martin Dowie
2003-04-25 16:06                     ` Nick Roberts
2003-04-25 16:38                       ` Vinzent Hoefler
2003-04-22 22:51           ` Matthew Heaney
2003-04-22 23:16             ` Nick Roberts
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox