comp.lang.ada
 help / color / mirror / Atom feed
From: tonya@aban.ece.ubc.ca (Tony R. Ambardar)
Subject: Re: How to modify Standard types in GNAT-3.11?
Date: 1999/02/19
Date: 1999-02-19T00:00:00+00:00	[thread overview]
Message-ID: <7ainnj$6ae$1@nntp.ucs.ubc.ca> (raw)
In-Reply-To: 7aijsf$j39$1@nnrp1.dejanews.com

robert_dewar@my-dejanews.com wrote:
: Bad idea! Stephen, I guess you are not that familiar with
: the GNAT run-time library. Long_Long_Float is used in many
: many units, and indeed the expected thing is that it be
: equivalent to Long_Float if IEEE extended is not supported.
: Even doing this equivalence is not so easy!

I noticed this pervasive use of Long_Long_Float early on, and ended up
spending a fair bit of time looking through the RTS code for the
Right Way. I've gotten everything to work (so far) by doing the
following:

1. Modifying all the IEEEX_ attributes to be the same as the IEEEL_
attributes in Ttypef.ads.

2. Defining LONG_DOUBLE_TYPE_SIZE to be 64 in my GCC target include file,
config/i386/rtems.h

This finally allows me to use GNAT/RTEMS with software floating-point.

Does this sound right you, Robert? I suspect there's a cleaner way to
do this, or perhaps there's something I've forgotten...

Thanks for your feedback.
--
  ____________________________________________________________
 /                                                            \
| Tony R. Ambardar         |   Department of Electrical &      |
| M.Eng. Student           |   Computer Engineering            | 
| Email: tonya@ece.ubc.ca  |   University of British Columbia  |
| Ph: (604) 822-3611       |   2356 Main Mall, Vancouver B.C.  |
| Fax:(604) 822-5949       |   V6T 1Z4  CANADA                 |
 \____________________________________________________________/




  reply	other threads:[~1999-02-19  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-18  0:00 How to modify Standard types in GNAT-3.11? Tony R. Ambardar
1999-02-18  0:00 ` Stephen Leake
1999-02-19  0:00   ` robert_dewar
1999-02-19  0:00     ` Tony R. Ambardar [this message]
1999-02-19  0:00       ` robert_dewar
1999-02-22  0:00     ` Stephen Leake
replies disabled

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