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: stuffle@pcii.net (Kenneth W. Sodemann) Subject: Re: floating point problem Date: 1997/03/03 Message-ID: <331ace4d.1427558395@news.mwci.net>#1/1 X-Deja-AN: 222744344 References: <5f0faa$6ok@mtinsc04.worldnet.att.net> Organization: MidWest Communications, Inc. Newsgroups: comp.lang.ada Date: 1997-03-03T00:00:00+00:00 List-Id: On Wed, 26 Feb 97 04:52:24 GMT, rawlins2@marshall.edu (bill) wrote: [snip] >I don't understand the error that occurs except to say that my screen is >spammed to death by comments that say something like.. > > >c:\usr\local\lib\gcc-lib\i386-pc-cygwin32\2.7.2\gnat1.exe frame 15 : sp = >0x276f360, pc = 0x5bc5b4 >end of stack trace, more stack frames may be present. > > >the code i used to produce this fault was > >with ada.float_text_io; >procedure floattest is >x: float; >begin >x := 3.2 + 4.8; >ada.float_text_io.put (x); >end floattest; > Code looks valid. >obviously very simple so anyone have any ideas why i can't use the floating >point? > >does it matter that my system is only a 486sx2/66 ? ^^ The SX designation on a 486 means that your math co-processor (IOW, floating point unit) is disabled. Therefore, any program you right to use floating point will have to use an floating point emulation library to do the math. Maybe GNAT has some kind of a problem with this. See if there is a compiler switch to turn FP emulation on/off, and turn it on if it exists. >thanks in advance. Just a shot in the dark, but it is worth a try. -- Ken Sodemann stuffle@pcii.net http://users.mwci.net/~stuffle