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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c1bdceb867926fdb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Interfacing Ada with C Date: Fri, 6 Aug 2010 23:07:45 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <06eb8f61-2a0c-4dda-93f3-8414d32b6e4f@f20g2000pro.googlegroups.com> <87pqxwrwtz.fsf@hugsarin.sparre-andersen.dk> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1281154069 15380 69.95.181.76 (7 Aug 2010 04:07:49 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 7 Aug 2010 04:07:49 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5843 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-RFC2646: Format=Flowed; Original Xref: g2news1.google.com comp.lang.ada:12920 Date: 2010-08-06T23:07:45-05:00 List-Id: "Ada novice" wrote in message news:aca699e9-90a9-4fba-b424-b75d249e260e@z10g2000yqb.googlegroups.com... >On Aug 6, 11:49 am, Peter Hermann wrote: >... >> 14 will run everywhere, >> 18 not. >> >> ph > >Is this because all (modern) platforms/architectures can easily >provide for 14 but not for 18? Most likely, all 32-bit Intel machines >are able to provide for 18. Am I right? Intel architectures might, but that doesn't mean that Ada compilers will. Most of the early Ada compilers (for Ada 83) didn't support anything beyond digits 15. Janus/Ada still doesn't. The original reason was that I couldn't be sure that the operations on the 80-bit type met the Ada 83 requirements for numeric precision. It's OK to ignore those requirements in Ada 95 (unless you are running in "strict" mode), but I don't think most compilers actually have separate strict and relaxed modes. In any case, it might very well be OK to support the 80-bit type, I've just never tried to figure out whether it is. (The majority of ACATS tests only apply to Float, Short_Float, and Long_Float, so those tests wouldn't apply to the 80-bit type anyway, so passing the ACATS doesn't prove anything either way.) Besides, there is no analog to those types on any other processor that we ever considered porting Janus/Ada to; we wanted code to be reasonably portable between implementations. Obviously, GNAT has made a different choice, but it's not one I would count on being available elsewhere. Randy. YC