Re: fortran 77 library

yocum@sapphire.fnal.gov
Wed, 23 Sep 1998 10:56:16 -0500

------- Forwarded Message

Return-Path: pcfarms-error@fnal.gov
Return-Path: <pcfarms-error@fnal.gov>
Received: from FNAL.FNAL.Gov (fnal.fnal.gov [131.225.9.8])
by sapphire.fnal.gov (8.8.7/8.8.7) with ESMTP id MAA06594
for <yocum@sapphire.fnal.gov>; Mon, 6 Jul 1998 12:45:46 -0500
Received: from dcdrjh.fnal.gov ("port 4336"@dcdrjh.fnal.gov)
by FNAL.FNAL.GOV (PMDF V5.1-10 #3998) id <01IZ2X2N7Y400004ZW@FNAL.FNAL.GOV>
(original mail from herber@dcdrjh.fnal.gov) for yocum@sapphire.fnal.gov; Mon,
6 Jul 1998 12:45:43 -0500 CST
Received: from dcdrjh.fnal.gov ("port 4336"@dcdrjh.fnal.gov)
by FNAL.FNAL.GOV (PMDF V5.1-10 #3998)
with ESMTP id <01IZ2X2MJBUM0005ML@FNAL.FNAL.GOV> for
pcfarms-expand@reprocess.FNAL.FNAL.GOV; Mon, 06 Jul 1998 12:45:00 -0500
Received: (from herber@localhost) by dcdrjh.fnal.gov (8.9.0/8.9.0)
id MAA09075; Mon, 06 Jul 1998 12:44:59 -0500 (CDT)
Date: Mon, 06 Jul 1998 12:44:59 -0500 (CDT)
From: "Randolph J. Herber" <herber@dcdrjh.fnal.gov>
Subject: Re: fortran 77 library
To: pcfarms@fnal.gov, Jeffrey Mcdonald <jemcdon@fnal.gov>
Errors-to: pcfarms-error@fnal.gov
Reply-to: "Randolph J. Herber" <herber@fnal.gov>
Message-id: <199807061744.MAA09075@dcdrjh.fnal.gov>
Status: R

The following header lines retained to affect attribution:
|Date: Mon, 06 Jul 1998 11:14:59 -0500 (CDT)
|From: Jeffrey Mcdonald <jemcdon@fnal.gov>
|Subject: fortran 77 library
|To: pcfarms@fnal.gov

|Hi,

| I'm attempting to port over some fortran code to the linux boxes
|and finding out that some of the standard library functions do not exist.
|In my example (with g77), CHAR and ICHAR which convert characters to their
|ascii equivalents do not exist. I have looked for documentation, but I
|have not found any information on how to get these functions defined or
|how to use a library function from the c-library.

| Is the idea that we don't need fortran standard library functions
|and we should call the functions we need from the c-library?

| Jeff

|_____________________________________________________
|Jeffrey McDonald, Florida State jemcdon@fnal.gov
|FNAL MS 352 phone 630-840-8301
|Batavia, IL 60510 fax 630-840-8886

When available CHAR and ICHAR are intrinsic procedures in Fortran.
That means that they are built into the compiler.

The discussion of how to call a C language routine, which the Unix
system calls and C language library calls are, ought to be in the
programmer's guide for the compiler. This material is _not_ part
of the language itself and therefore can not be expected in the
languge reference manual for the compiler which one may think is
the complete discussion of how to use the language and compiler.

The C language does not require such functions as those functions
are among the operations of the C language itself.

Fortran callable C language support routine are writable and
most likely would be only a few lines each, possible a single line.

Randolph J. Herber, herber@dcdrjh.fnal.gov, +1 630 840 2966,
CD/OSS/CDF CDF-PK-149F Mail Stop 318
Fermilab, Kirk & Pine Rds., P.O. Box 500, Batavia, IL 60510-0500, USA.
(Speaking for myself and not for US, US DOE, FNAL nor URA.)
(Product, trade, or service marks herein belong to their respective owners.)
N 41 50 26.3 W 88 14 54.4 and altitude 700' approximately, WGS84 datum.
``The lyf so short, the craft so long to lerne.'' - Chaucer

------- End of Forwarded Message