comp.lang.ada
 help / color / mirror / Atom feed
* floating point problem
@ 1997-02-26  0:00 bill
  1997-03-02  0:00 ` Corbin Dunn
  1997-03-03  0:00 ` Kenneth W. Sodemann
  0 siblings, 2 replies; 52+ messages in thread
From: bill @ 1997-02-26  0:00 UTC (permalink / raw)



hi again, 
if you read my last post then you know i am 
very new to gnats ada95 compiler.  I installed it last night
and after overcoming some stupidly simple problems i think i have actually
encountered a "real" problem as far as these things go..

in testing simple programs using things like ada.float_text_io and 
ada.integer_text_io i have been unable to compile anything that uses floating 
point values.


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;

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 ?

thanks in advance.
bill rawlinson

   ___                ___            
  (/__) .  /) /)     (/__)    http://webpages.marshall.edu/~rawlins2                          
  /__) (__(__(___    /\    __          /) .     _    _              
 (                  (  \  (_/(_(_(_(__(__(_/\/_/_)__(_)_/\/______   





^ permalink raw reply	[flat|nested] 52+ messages in thread
* Re: Floating point problem
@ 1997-03-27  0:00 Kees de Lezenne Coulande
  1997-03-28  0:00 ` Robert Dewar
  1997-03-28  0:00 ` J-P. Rosen
  0 siblings, 2 replies; 52+ messages in thread
From: Kees de Lezenne Coulande @ 1997-03-27  0:00 UTC (permalink / raw)



Larry Kilgallen <kilgallen@EISNER.DECUS.ORG> wrote
on the subject of a floating-point coprocessor being needed for use
of the GNAT compiler:

>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.

>But it is really tough to sell software to people if you tell them they
>have to spend 40x the software price to buy a new computer.

     Last year I bought a 387 floating-point coprocessor for my father's 8
Mb 386DX-40 for the equivalent of about $15. Just as an experiment, I have
tried running one of my large Ada programmes on it (which was migrated from
a VAX to a PC using GNAT for OS/2). It ran OK, slowish, but no worse than
the good old VAX on a warm and busy day. And this was under DOS using the
EMX.EXE DOS-extender. I have not tried the compiler on this machine. I
would expect it to work, but too slow for any practical purpose.
     In another silly experiment at "how low can you go", about a year ago
we tried the then-current GNAT for DOS on a low-end 386. I cannot remember
the exact details anymore, but I think it was a 386SX with 2 Mb, and
definitely no FP. Compiling "Hello World" took about 20 minutes, with the
hard disk thrashing about most of the time, and the compiled program ran
OK. Running any useful programme (compiled on a more capable machine) did
not work because of the lack of floating-point coprocessor.
                             Kees de Lezenne Coulander
---------------------------------------------------------------------
  C.M. de Lezenne Coulander
  Amsterdam-Zuidoost
  The Netherlands
  E-mail: lezenne@compuserve.com

  Aircraft Development and Systems Engineering B.V.
  Schiphol-Rijk, The Netherlands
=====================================================================




^ permalink raw reply	[flat|nested] 52+ messages in thread

end of thread, other threads:[~1997-04-03  0:00 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-02-26  0:00 floating point problem bill
1997-03-02  0:00 ` Corbin Dunn
1997-03-02  0:00   ` tmel
1997-03-02  0:00     ` Robert Dewar
1997-03-03  0:00 ` Kenneth W. Sodemann
1997-03-04  0:00   ` Robert Dewar
1997-03-05  0:00     ` Larry Kilgallen
1997-03-05  0:00       ` Robert Dewar
1997-03-06  0:00         ` Larry Kilgallen
1997-03-09  0:00           ` Robert Dewar
1997-03-10  0:00             ` Fergus Henderson
1997-03-10  0:00               ` Robert Dewar
1997-03-10  0:00                 ` Larry Kilgallen
1997-03-12  0:00                   ` Robert Dewar
1997-03-12  0:00                     ` Larry Kilgallen
1997-03-13  0:00                       ` Robert Dewar
1997-03-14  0:00                         ` Larry Kilgallen
1997-03-15  0:00                           ` Robert Dewar
1997-03-12  0:00                     ` Joel VanLaven
1997-03-12  0:00                       ` Robert Dewar
1997-03-13  0:00                     ` Kenneth W. Sodemann
1997-03-15  0:00                       ` Robert Dewar
1997-03-16  0:00                         ` Larry Kilgallen
1997-03-06  0:00     ` Geert Bosch
1997-03-06  0:00       ` Fergus Henderson
1997-03-06  0:00         ` Scott Ingram
1997-03-06  0:00       ` Robert Dewar
1997-03-17  0:00   ` Tom Moran
1997-03-17  0:00   ` Robert I. Eachus
1997-03-17  0:00     ` Robert Dewar
1997-03-18  0:00   ` Robert I. Eachus
  -- strict thread matches above, loose matches on Subject: below --
1997-03-27  0:00 Floating " Kees de Lezenne Coulande
1997-03-28  0:00 ` Robert Dewar
1997-03-28  0:00   ` Larry Kilgallen
1997-03-28  0:00     ` Robert Dewar
1997-03-29  0:00       ` Tom Moran
1997-03-30  0:00         ` Larry Kilgallen
1997-03-31  0:00           ` Robert Dewar
1997-04-01  0:00             ` Larry Kilgallen
1997-04-01  0:00               ` Tom Moran
1997-04-02  0:00                 ` Larry Kilgallen
1997-04-02  0:00                   ` Robert Dewar
1997-04-03  0:00                     ` Jerry van Dijk
1997-04-03  0:00                       ` Jerry van Dijk
1997-04-03  0:00                         ` Jerry van Dijk
1997-04-02  0:00               ` Robert Dewar
1997-03-31  0:00         ` Robert Dewar
1997-03-31  0:00           ` Tom Moran
1997-03-31  0:00             ` Robert Dewar
1997-03-28  0:00     ` Tom Moran
1997-03-28  0:00 ` J-P. Rosen
1997-03-28  0:00   ` Robert Dewar

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