f2c

FORTRAN 77 to C/C++ translator

Install

All systems
curl cmd.cat/f2c.sh
Debian Debian
apt-get install f2c
Ubuntu
apt-get install f2c
image/svg+xml Kali Linux
apt-get install f2c
Fedora
dnf install f2c
Windows (WSL2)
sudo apt-get update sudo apt-get install f2c
Raspbian
apt-get install f2c

f2c

FORTRAN 77 to C/C++ translator

Translates FORTRAN 77 (with some extensions) into C, so that it can then be compiled and run on a system with no Fortran compiler. The C files must then be linked against the appropriate libraries. This is an actively maintained FORTRAN to C translator and with the fort77 frontend provides an ideal way to compile FORTRAN routines as black boxes (for example for invocation from C). Source level debugging facilities are not available, and error messages are not as well developed as in g77.