compiler-explorer / compiler-explorer/compiler-explorer

[COMPILER REQUEST]: f2c (Fortran to C translator)

Open
#8,420 0 comments 0 reactions 0 assignees View on GitHub
new-compilers request
Dominant language
TypeScript
Stars
19.1k
Forks
2.1k
Avg merge
3d 15h
Merged PRs (30d)
67

Description

### Compiler name

f2c

### Compiler version

Latest

### Compiler language

Fortran

### Compiler homepage

https://www.netlib.org/f2c/

### Motivation

`f2c` is a Fortran 77 to C translator originating at Bell Labs. For a description of the tool see: https://doi.org/10.1145/101363.101366

The translator is based on the original UNIX f77 compiler of Feldman & Weinberger (https://wolfram.schneider.org/bsd/7thEdManVol2/f77/f77.pdf). `f2c` is still used in some niche circles so inspecting the generated C code could be useful.

The website also provides a shell script `fc` which calls f2c and subsequently invokes a C compiler (taken from the environment variable `CC_f2c` or `cc`).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.