CFortran
CFortran refers to the set of conventions, practices, and tools used to enable interoperability between the C and Fortran programming languages. It covers the mechanisms by which routines and data can be shared across language boundaries in a single program, allowing, for example, a C program to call Fortran subroutines or a Fortran program to invoke C functions.
Historically, inter-language calls relied on compiler-specific name mangling, calling conventions, and ad hoc wrappers, which created
In modern practice, interoperability typically involves Fortran procedures annotated with the bind(C) attribute to expose a
CFortran interoperability is widely used in scientific and high-performance computing, where legacy Fortran numerical libraries are