Generated by GPT-5-mini| gfortran | |
|---|---|
| Name | gfortran |
| Developer | GNU Project |
| Released | 2000s |
| Latest release | stable branch of GNU Compiler Collection |
| Programming language | C++ |
| Operating system | Cross-platform (Unix-like, Windows, macOS) |
| License | GNU General Public License |
gfortran gfortran is the Fortran front-end of the GNU Compiler Collection that processes Fortran source to object code for platforms such as Linux, Windows, macOS, FreeBSD, NetBSD, OpenBSD, and Solaris. It is used in scientific computing, high-performance computing, numerical libraries and education, and is integrated into build systems and development environments associated with projects like GNU Project, Debian, Red Hat Enterprise Linux, Ubuntu, and Fedora. gfortran development and contributions are associated with communities and organizations including FSF, GNOME, LLVM-related projects, and various research institutions and national laboratories such as CERN, Los Alamos National Laboratory, and Lawrence Livermore National Laboratory.
gfortran originated as the successor to the Fortran front-end of the GNU Compiler Collection after diverging from the earlier g77 codebase; its creation and integration occurred during the 2000s as part of the GCC retargeting and modernization efforts influenced by contributors from institutions like University of Cambridge, Massachusetts Institute of Technology, ETH Zurich, University of California, Berkeley, and Imperial College London. Development milestones intersected with major events and releases from organizations such as the Free Software Foundation and distributions including Debian GNU/Linux and Fedora Project. The project advanced alongside competing compiler projects and standards activity, including work by ISO/IEC JTC 1/SC 22, the Fortran standards committee, and parallel compiler efforts at Intel Corporation and NAG.
gfortran implements language features aligned with revisions from standards bodies such as ISO/IEC 1539-1:2018 and earlier Fortran standards, incorporating support for constructs introduced across Fortran 77, Fortran 90, Fortran 95, Fortran 2003, Fortran 2008, and parts of Fortran 2018. The front-end handles modules, array intrinsic procedures, and interoperability facilities that interact with external ecosystems like POSIX-based environments, scientific libraries from Netlib, and vendor tools from Intel Corporation and NVIDIA. Standards compliance work involves interaction with implementers at institutions such as NAG, Cray Research, Hewlett-Packard, IBM, and standards liaisons representing research centers like Argonne National Laboratory.
gfortran is implemented as a front-end within the GNU Compiler Collection, written primarily in C++, and integrates with GCC middle-ends and back-ends that generate machine code for architectures including x86-64, ARM64, PowerPC, RISC-V, and IA-32. It interoperates with toolchains and tools such as GNU Binutils, GDB, make, CMake, Autoconf, and package systems maintained by Debian Project, Ubuntu and Red Hat, Inc.. Integration with scientific ecosystems enables linking against numerical libraries like LAPACK, BLAS, ScaLAPACK, OpenBLAS, and vendor-tuned libraries from Intel Math Kernel Library and AMD libraries.
Optimization strategies used by gfortran leverage GCC optimization passes and code generation techniques developed by compiler researchers from institutions such as University of Illinois Urbana–Champaign, Stanford University, Princeton University, and laboratories including Sandia National Laboratories. Generated code benefits from vectorization, loop transformations, inlining, and link-time optimization frameworks that are comparable to strategies employed by commercial compilers from Intel Corporation, NAG, and Cray Research. Performance tuning often involves cooperation with parallel and accelerator ecosystems including OpenMP, MPI, CUDA, and OpenACC, and profiling tools such as perf (Linux), Valgrind, Intel VTune, and GNU gprof.
gfortran supports legacy and modern Fortran constructs and provides extensions and compiler options to accommodate codebases originating from projects and institutions like Netlib, GFDL, NOAA, NASA, European Centre for Medium-Range Weather Forecasts, and Los Alamos National Laboratory. Compatibility with numerical and domain-specific packages aligns with ecosystems maintained by NumPy-compatible workflows in research groups at Lawrence Berkeley National Laboratory and universities such as University of Oxford and Princeton University. Extensions and compatibility flags address vendor-specific intrinsics and interoperability with C interfaces standardized by ISO/IEC JTC 1/SC 22 liaison representatives.
gfortran is distributed under the GNU General Public License as part of the GNU Compiler Collection, with stewardship involving the Free Software Foundation, volunteer contributors, and corporate contributors including Red Hat, Inc., SUSE, and others. Development occurs via collaborative platforms used by projects around GitHub, Savannah (software), and mailing lists that mirror governance models similar to those used by Linux kernel development and other large-scale open-source projects involving contributors from Canonical (company), Debian Project, and research groups at University of Cambridge.
gfortran is invoked in build pipelines and continuous-integration environments used by organizations like Travis CI, Jenkins, GitLab, and CircleCI to compile scientific codebases maintained by consortia including PFLOTRAN, LAMMPS, GROMACS, Quantum ESPRESSO, and CP2K. Example usage in build systems often parallels examples published by maintainers at Netlib and tutorials from universities such as Massachusetts Institute of Technology, University of Cambridge, and ETH Zurich, and is demonstrated in community-driven repositories hosted by GitHub and supported in distributions like Debian and Ubuntu.
Category:Compilers Category:Fortran