gfortran & iargc/getarg
Erik Schnetter
schnetter@uni-tuebingen.de
Wed Apr 7 05:14:00 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 07 April 2004 00:07, Satish Balay wrote:
> Thanks to the recent 'char commonblock' updates I was able to go a
> bit further with gfortran.
>
> My next issue is command line argument processing support. Is there a
> plan to add iargc()/getarg() or ipxfargc()/pxfgetarg() support into
> gfortran?
That should not be difficult. argc and argv are already saved at
startup, and there is a routine get_args to access them. See the files
fmain.c and runtime/main.c in the libgfortran directory.
I tried to implement iargc and getarg, but came across a problem: these
are external procedures and not intrinsics. I know how to teach
gfortran about new intrinsics, but how do I add new external procedure
to libgfortran?
A related question: What is the type name, in C, for a default Fortran
integer? Is it index_type?
- -erik
PS: libgfortran contains many references to gcc-g95.sourceforge.net, it
calls itself "libgfor", and it gives install instructions for a gcc
that doesn't know about gfortran. Those are outdated.
- --
Erik Schnetter <schnetter@aei.mpg.de> http://www.aei.mpg.de/~eschnett/
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from www.keyserver.net.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAczICm3uiSwno3f0RAnEFAJ0SmYhYYdbD8U7VUtGsNdmM8oQ1UgCcDIW6
fC3V1O6auGQKsSHLimbrpxI=
=upjd
-----END PGP SIGNATURE-----
More information about the Fortran
mailing list