comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Error in gnat-4.6  (opensuse 11.4) ?
Date: Thu, 17 Mar 2011 09:50:52 -0700
Date: 2011-03-17T09:50:52-07:00	[thread overview]
Message-ID: <iltejo$d1u$1@tornado.tornevall.net> (raw)
In-Reply-To: <m2pqpphl3e.fsf@pushface.org>

On 03/17/2011 07:34 AM, Simon Wright wrote:
>
>>     type Real is Digits 16;
>
> This (on Intel hardware) asks for what GNAT calls Long_Long_Float, which
> requires 10 bytes. "digits 15" asks for Long_Float, which requires 8
> bytes.
>
>>     type f_t  is array(1..0400) of Real;
>>     type fe_t is array(1..1000) of Real;

Also note that GNAT might choose to align the components of these on 4-byte 
boundaries, making Fe_T 12_000 bytes rather than 10_000.

-- 
Jeff Carter
"We use a large, vibrating egg."
Annie Hall
44



      reply	other threads:[~2011-03-17 16:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-17 13:33 Error in gnat-4.6 (opensuse 11.4) ? reinkor
2011-03-17 14:34 ` Simon Wright
2011-03-17 16:50   ` Jeffrey Carter [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