Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ extcentry(1) — GL2 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mkf2c(1)

EXTCENTRY(1)  —  Silicon Graphics

NAME

extcentry − extract FORTRAN-callable entry points from a C file

SYNOPSIS

extcentry infile outfile

DESCRIPTION

Extcentry is used to extract C functions for which FORTRAN-callable interface routines (wrappers) are to be generated by the program mkf2c(1). Extcentry accepts as input any C file (infile), and outputs (to outfile) only those portions which are surrounded by the special comments /* CENTRY */ and /* ENDCENTRY */.

The first step in generating a FORTRAN-to-C interface routine is to surround only those C functions for which entry points are to be generated by these special comments and to run the file through extcentry.  The FORTRAN-to-C interface generator program mkf2c can then be invoked on the resultant file to generate the assembly language wrapper.  This is necessary since mkf2c understands only a limited subset of the C grammar, and cannot parse such constructs as external declarations, typedefs, and C-preprocessor directives. 

SEE ALSO

FORTRAN REFERENCE MANUAL

mkf2c(1)

Version 2.3  —  July 04, 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026