comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: GNAT for a PPC Mac OS X machine
Date: Mon, 18 Apr 2011 17:52:51 +0200
Date: 2011-04-18T17:52:51+02:00	[thread overview]
Message-ID: <4dac5e53$0$6887$9b4e6d93@newsspool2.arcor-online.net> (raw)
In-Reply-To: <C9D209D9.9928%yaldnif.w@blueyonder.co.uk>

On 18.04.11 16:31, Bill Findlay wrote:

> And this is fine in Intel.  But on PPC, we get the error:
> 
>     92.    for Q_register'Size use word'Size;
>                                         |
>         >>> size for "Q_register" too small, minimum allowed is 64
> 
> It's puzzling that the compiler refuses to give Q_register the size that it
> happily gave to word.  (The aspect clause is there to support unchecked
> conversions between the word and Q_register types.)

Just guessing: Apple's 32-bit/64-bit PowerPC Function Calling Conventions
(which refer to the PowerPC ABI) indicate that there is a number of
alignment modes, including packed alignment; the GCC docs mention that
some modes are not supported, IIUC.

OTOH, Apple recommends not to pack data, for better performance.
Continuing guess work, if KDF9.word were 64 bits wide, perhaps the record
(or a derived one, for computing) could have another 16 padding bits
and then be layed out to match KDF9.word's 64 bit representation
on PowerPC?




      parent reply	other threads:[~2011-04-18 15:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-17 14:02 GNAT for a PPC Mac OS X machine Bill Findlay
2011-04-17 14:43 ` Simon Wright
2011-04-17 18:47   ` Bill Findlay
2011-04-18  1:50   ` Bill Findlay
2011-04-18  9:30     ` Simon Wright
2011-04-18 14:31       ` Bill Findlay
2011-04-18 15:28         ` Niklas Holsti
2011-04-18 15:46           ` Bill Findlay
2011-04-18 17:08             ` Niklas Holsti
2011-04-19  3:07               ` Bill Findlay
2011-04-18 15:52         ` Georg Bauhaus [this message]
replies disabled

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