Forrest logo
tool overview
On this page you find all important commands for the CLI tool gfortran. If the command you are looking for is missing please ask our AI.

gfortran

  1. gfortran is a command line tool used for compiling and building Fortran programs.
  2. It is part of the GNU Compiler Collection (GCC) and is the default Fortran compiler on many Unix-like operating systems.
  3. gfortran supports the Fortran 77, Fortran 90, Fortran 95, Fortran 2003, Fortran 2008, and partial Fortran 2018 language standards.
  4. It provides a wide range of optimization options to enhance the performance of compiled programs.
  5. gfortran supports numerous platforms and architectures, including x86, x86-64, PowerPC, ARM, and more.
  6. The tool can generate executables directly from source code or object files produced by other compilers.
  7. It supports various command line options to customize the compilation process, such as setting optimization levels, warning messages, and target-specific options.
  8. Additionally, gfortran provides extensive debugging support, including options for generating debugging symbols and enabling runtime checks.
  9. The tool also includes Fortran-specific features like module support, type-bound procedures, and derived types.
  10. gfortran is an open-source tool that has a large and active community of developers and users, providing ongoing maintenance, bug fixes, and improvements.

List of commands for gfortran:

  • gfortran:tldr:252c6 gfortran: Show common warnings, debug symbols in output, and optimize without affecting debugging.
    $ gfortran ${path-to-source-f90} -Wall -g -Og -o ${path-to-output_executable}
    try on your machine
    explain this command
  • gfortran:tldr:4c541 gfortran: Compile source code into Assembler instructions.
    $ gfortran -S ${path-to-source-f90}
    try on your machine
    explain this command
  • gfortran:tldr:cf821 gfortran: Include libraries from a different path.
    $ gfortran ${path-to-source-f90} -o ${path-to-output_executable} -I${path-to-mod_and_include} -L${path-to-library} -l${library_name}
    try on your machine
    explain this command
  • gfortran:tldr:ee4a5 gfortran: Compile source code into an object file without linking.
    $ gfortran -c ${path-to-source-f90}
    try on your machine
    explain this command
  • gfortran:tldr:f4b09 gfortran: Compile multiple source files into an executable.
    $ gfortran ${path-to-source1-f90 path-to-source2-f90 ---} -o ${path-to-output_executable}
    try on your machine
    explain this command
tool overview