www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/28/10:17:46

Date: Tue, 28 Nov 1995 13:12:44 +0100
From: Mahboub Khaled <mahboub AT edumath DOT u-strasbg DOT fr>
Apparently-To: djgpp AT sun DOT soe DOT clarkson DOT edu

  I am one of the users of the djgpp environement in my pc (486dx2 8mb ram)
  all my programs are in fortran language and I convert them by using the 
  following command : f2c -A -w prog.f 
  when I run my program with the fortran compilator it walks good but when
  I run the prog.c : gcc -o prog prog.c -lf2c -lm 
                     go32 prog

   it complains that an overflow exception occur ( division by zero).

   the subroutine from  which the error message come is  :

   implicit double precision x02amf
   double precision x02con
   data x02con /Z'0010000000000000'
   x02amf = x02con
   end
   the program evaluate 1.d0/x02amf 
   in the first case under the fortran compilator (in sun) it gives : 
   x02amf = 2.225073858507202e-308      1.d0/x02amf = 4.494232837155788e+307    
   under the c compilator it gives :(in my pc)
    x02amf =0.                overflow exception

   where is the problem :with my machine or with the compilator.
   thank you for answering my question. 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019