RFC POSIX Fortran Interface

Jerry DeLisle jvdelisle@verizon.net
Sun Oct 14 19:05:00 GMT 2007


Hi all,

Attached is an initial start at implementing the POSIX fortran interface for 
gfortran.

The attached implements the following:

Subroutine: PXFCONST()
Functions: IPXFCONST(), PXFISCONST(), PXFLENTRIM()

I would like to extend my appreciation to Walter Spector for giving some initial 
guidance on this.

The code is usable as is.  My plan is to incorporate this into libgfortran for 
version 4.4 when the time comes.

In the meantime, we need testing to identify missing constants or constants that 
are not defined on particular platforms so that we can adjust the table in 
posixf.c with any conditional directives.

The table of constants is a sorted table.  I plan to implement a binary search 
on this, but for now it is linear.

For constants that I do not have in there yet, I can easily add.  Just email 
this list with suggestions and/or requests.

Once we get the constants settled down and the configure magic in place to 
incorporate this into the libraries, I can then begin to add other subroutines 
and functions required by the POSIX standard.  For reference, I am using:

IEEE STD 1003.9-1992 IEEE STANDARD FOR INFORMATION TECHNOLOGY—POSIX FORTRAN 77

All comments and suggestion welcome.

Best regards to all,

Jerry


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: makefile
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071014/943e326d/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pxf_interface.f90
Type: text/x-fortran
Size: 2285 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071014/943e326d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: posixf.h
Type: text/x-chdr
Size: 2617 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071014/943e326d/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: posixf.c
Type: text/x-csrc
Size: 5750 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071014/943e326d/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testprg.f90
Type: text/x-fortran
Size: 2087 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071014/943e326d/attachment-0003.bin>


More information about the Fortran mailing list