Prof. A Olowofoyeku (The African Chief) wrote:
On 26 Mar 2002 at 11:01, Silvio a Beccara wrote:
Hello,
I tried compiling this simple program, with GPC RC3 (20020304), with GCC 2.95.3 (20010315).
[...]
I don't get any runtime errors (with gpc-20020318).
This is what I get: Minus the exponential of 1000 is 0.000000000000000
[...]
Minus the exponential of 50000 is 0.000000000000000
So the question is, should gpc catch underflows. Apparently the result does not depend only on gpc, but also on the underlying system libraries. With djgpp and the program unmodified I get the error #700 With an instruction uses libml; which is an unit which imports the CEPHES math library I obtain like the Chief. AFAIK when there is no special instruction exp is imported from libm if it exists there or libc if not, and the result is thus system dependant.
Maurice