Jean-Claude Berges wrote:
> The f95 default is -ftrap=common but the default with f77 is
>-ftrap=%none and my problem is to obtain the same behavior in F90 as
>in F77.
>
Just set the -ftrap manually and you'll get substantively the same behavior.
>
>Let's assume that you have a library compiled in Fortran 90 with the
>option ftrap=%none.
>
It's a runtime not a compile time thing (it's a user convenience to
allow it to be set on the compile line ... people complained about
having to put non-portable calls into their code ... they preferred a
compiler flag).
>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 ?
>
>
Generally speaking, it's link time only. I vaguely recall once having a
discussion about allowing some compile time transformations but I don't
believe that got implemented. Of course, I haven't been involved for
some years which is why I'm using weasel words rather than firm
declarations.
--
Keith H. Bierman [log in to unmask]
Sun Microsystems PAE | [log in to unmask]
12 Network Circle UMPK 12-325 | 650-352-4432 voice+fax
Menlo Park, California 94025 | sun internal 68207
<speaking for myself, not Sun*> Copyright 2004
------------------------------------------------------------
NOTICE: This email message is for the sole use of the
intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited.
If you are not the intended recipient, please contact
the sender by reply email and destroy all copies of the
original message.
|