Jump to content

f2c

From Wikipedia, the free encyclopedia
f2c
Repository
Websitewww.netlib.org/f2c/Edit this on Wikidata

f2cis a program toconvertFortran 77toCcode, developed atBell Laboratories.The standalone f2c program was based on the core of the first complete Fortran 77compilerto be implemented, the "f77" program byFeldmanandWeinberger.Because the f77 compiler was itself written in C and relied on a C compiler back end to complete its final compilation step, it and its derivatives like f2c were much more portable than compilers generatingmachine codedirectly.

The f2c program was released asfree softwareand subsequently became one of the most common means to compile Fortran code on many systems where native Fortran compilers were unavailable or expensive. Several large Fortran libraries, such asLAPACK,were made available as C libraries via conversion with f2c. The f2c program also influenced the development of theGNU g77 compiler,which uses a modified version of the f2cruntime libraries.

References

[edit]
  • S. I. Feldman and P. J. Weinberger.A portable Fortran 77 compiler.InUNIX Time Sharing System Programmer's Manual,volume 2. AT&T Bell Laboratories, tenth edition, 1990.
  • S. I. Feldman, David M. Gay, Mark W. Maimone, and N. L. Schryer, "A Fortran to C Converter,"AT&T Bell Laboratories technical report, 1990. Also the paper of the same title by S. I. Feldman, published inACM SIGPLAN Fortran Forum,vol. 9, issue 2, p. 21–22 (1990).
  • Thef2csource code and documentation, atNetlib.