comp.lang.ada
 help / color / mirror / Atom feed
From: franke@minet.uni-jena.de (Frank Ecke)
Subject: Re: Need GNAT Help !!!!!
Date: 1998/08/18
Date: 1998-08-18T00:00:00+00:00	[thread overview]
Message-ID: <slrn6ticdd.v1v.franke@pax10f.mipool.uni-jena.de> (raw)
In-Reply-To: 6ra6bc$8mv$1@hirame.wwa.com

On 17 Aug 1998 21:12:12 GMT, Samuel G. Williams <samw@wwa.com> wrote:

> I have been helping a software engineer in another area of out company draft
> an ADA solution for an extremely complex problem.

Please, use the name Ada.


>Does anyone know how to change a type size under GNAT?

This is quite vague a question.  If you want to alter the number of bits used
for the representation of the type, then this is not a question specific to
GNAT.  Ada provides for such facilities.  You might wish to take a look at
Section 13 of the Ada Reference Manual.  Following below is a short
demonstration:


   type Short is delta 0.01 range -100.0 .. 100.0;
   for Short'Size use 15;


In essence, the above code requests that 15 bits be used for the representation
of the type (descriptor) and for the objects eventually created (of type
Short).


Is that what you were looking for?  If not, be more precise!


Regards,


Frank




  parent reply	other threads:[~1998-08-18  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-17  0:00 Need GNAT Help !!!!! Samuel G. Williams
1998-08-18  0:00 ` dennison
1998-08-20  0:00   ` Samuel G. Williams
1998-08-21  0:00     ` dennison
1998-08-18  0:00 ` Frank Ecke [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-08-22  0:00 dewar
replies disabled

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