From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bcced006b4956bd6 X-Google-Attributes: gid103376,public From: tonya@aban.ece.ubc.ca (Tony R. Ambardar) Subject: Re: How to modify Standard types in GNAT-3.11? Date: 1999/02/19 Message-ID: <7ainnj$6ae$1@nntp.ucs.ubc.ca>#1/1 X-Deja-AN: 445943659 References: <7afo84$fgm$1@nntp.ucs.ubc.ca> <7aijsf$j39$1@nnrp1.dejanews.com> Organization: The University of British Columbia Newsgroups: comp.lang.ada Date: 1999-02-19T00:00:00+00:00 List-Id: 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 | \____________________________________________________________/