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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d053083f91c271b2 X-Google-Attributes: gid103376,public From: eachus@spectre.mitre.org (Robert I. Eachus) Subject: Re: floating point problem Date: 1997/03/17 Message-ID: #1/1 X-Deja-AN: 226207564 References: <5f0faa$6ok@mtinsc04.worldnet.att.net> <331ace4d.1427558395@news.mwci.net> Organization: The Mitre Corp., Bedford, MA. Newsgroups: comp.lang.ada Date: 1997-03-17T00:00:00+00:00 List-Id: Robert Dewar said: > Sure there are tons of such machines, but for serious development work, > which is what GNAT is intended for, it is silly to use an ancient 386 In article <1997Mar16.113256.1@eisner> kilgallen@eisner.decus.org (Larry Kilgallen) writes: > That is too bad. I had hoped GNAT might be useful for deployment. > Just to make sure we are on the same wavelength, my concern is > entirely with what happens at runtime with generated programs. > For running the compiler I can buy (actually already have) some > appropriate machines. Ah, I see the confusion. If you want programs that will run on "any" PC, you need to avoid the use of floating point in your programs. (And to test on a 386 with no FPU, just to check.) The GNAT compiler itself uses floating point, in some cases even when your program doesn't, so you need to develop on an FP equipped machine. (And the random number generator is one library package which uses float, even if your program doesn't explicitly. Any others?) Now for some value added. Several years ago for a procurement, we went looking for Ada (83) compilers that could be validated on PCs without an FPU. We couldn't find one, we couldn't find a compiler vendor willing to build and sell one, and we couldn't even find a compiler which ran on a machine with an FPU and produced validatable code for a non-FPU machine. This was back when the 286 and 386 were the "standard" CPU chips. However, in the machines which used Motorola 680x0 chips, all machines/compilers seemed to support emulation of the FPU if not present. In fact some compilers gave you a choice between non-IEEE (and therefore non-hardware) floating-point libraries, and those which relied on IEEE hardware support, but ran much slower if the emulator was invoked. -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...