Hello all ,
I have some questions about the floating-point trapping mode option
ftrap on SUN workstation.
This option sets the IEEE 754 trapping modes that are established at
program initialization. Processing is left-to-right. The common
exceptions, by definition are invalid, division by zero, and overflow.
The f95 default is -ftrap=common but the default with f77 is
-ftrap=%none and my problem is to obtain the same behaviour in F90 as
in F77.
Let's assume that you have a library compiled in Fortran 90 with the
option ftrap=%none.
If you have a program that uses this library, does it have to be also
compiled with the option ftrap=%none in order to avoir to stop
unexpectedly and create "coredump file" due to IEEE arithmetic
exceptions coming from the functions of the library ?
Does the option "ftrap" only have an effect on the link with the library
during the compilation ? Is it necessary to compile the library with
ftrap option or only the software that calls the library ?
Thanks in advance.
Jean Claude BERGES
French Space Center
18,Av. Edouard Belin
31401 TOULOUSE Cedex 04 - FRANCE
|