RFC POSIX Fortran Interface

Walter Spector w6ws@earthlink.net
Sun Oct 14 20:54:00 GMT 2007


Steve Kargl wrote:
> ...
> I haven't read through the code in detail; however, I'm wondering
> what your plans are.  In particular, do you plan to add the PXF
> functions as gfortran intrinsic procedures?

There is nothing in PXF that requires the routines to be intrinsic.
So I would suggest not.

> Personally, I'd rather have an independent libpxf (without the name
> mangling) and a -fPXF or -fposix or some such option...

Maybe.  But there are a few routines which might call internal (e.g,
non-public, subject to change) libgfortran entry points - notably in
the I/O area.  So it becomes a question of design.

> ...  This would allow someone (perhaps, Walt) to use their
> own implementation of libpxf without worrying about whether gfortran
> screws with the namespace.

Don't worry about me.  It is trivial to link my library ahead of any
system supplied libraries.

> It also appears that it may be appropriate to split all nonstandard
> intrinsics out of libgfortran into libfunjunk, and simply treat these
> as EXTERNAL references.  This would reduce the whining about getarg
> and iargc and ...  Of course, this would then mean people would need
> to use the -ffun-junk option.

Your call.

Walter



More information about the Fortran mailing list