Print

Print


Glenn:

> I read the sun manpage carefully. -xtypemap does not do what I want. The
> f90 code is using 64bit reals and 32bit integers (because it's using the
> default type for integers but using selected_real_kind() in a module to
> type all reals to 64bit).
> 
> What I really want to be able to do is
> -xtypemap=real:64,double:64,integer:32 but my reading of the man page
> suggests this option doesn't exist. Which is a bit odd because you have -r8
> and -i4 options which IS what I want. However, for reasons I've not been
> able to figure out, the -r8 -i4 doesn't seem to work.
> 
> Hope that makes sense.

Well, that makes sense and "-r8 -i4" (in that order) should work.  (The
"-i4" overrides part of the "-r8" and options are implemented
"left-to-tight".)  I tried a short example and found (using "-Xlist")
that the default integer is allocated  just 4-bytes.  If you specify
"-r8", default integers are *allocated* 8-bytes, but only 4-byte
arithmetic is used.  This was tested with the newly released f77 5.0
compiler.

Chuck
--
Chuck Fisher                        +1-650-786-9317
Sun Development Environments & Tools Product Support
[log in to unmask] | [log in to unmask]



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%