Ad

Flang: Fortran Compiler Frontend for LLVM

Flang compiles Fortran code to LLVM Intermediate Representation, enabling integration with LLVM's powerful optimization pipeline. Supports various Fortran standards and is used in commercial compilers.

Flang is a Fortran compiler front-end designed to work seamlessly with LLVM. It converts Fortran source code into LLVM Intermediate Representation (IR), allowing it to benefit from LLVM's extensive optimization capabilities. Developed as an open-source alternative to commercial Fortran compilers, Flang aims to provide a robust and modern compilation solution for Fortran developers. It is a continuation of the Classic Flang project, distinct from the newer Flang project within LLVM.

Flang is notable for its compatibility with Clang compiler options, providing a familiar environment for developers. It offers a comprehensive set of Fortran-specific compiler flags for fine-grained control over compilation behavior. The project has been actively maintained and is used in several commercial products, demonstrating its reliability and practical application. Flang's integration with LLVM allows for leveraging LLVM's advanced optimization passes.

  • Language Support: Fortran 77, 90, 95, and 2003 standard conformance is supported with various options.
  • LLVM Integration: Leverages LLVM's optimization pipeline for enhanced performance.
  • Compiler Options: Accepts all Clang compiler options and provides Fortran-specific options for customization.
  • Cross-Platform: Built to be portable and functional on various operating systems.
  • Open Source: Free to use, modify, and distribute under an open-source license.

Flang is a mature project with a well-established history and ongoing maintenance. It has been used in commercial products for years, indicating stability and reliability. The project maintains active development and a community of users. Documentation is available on the project wiki and mailing lists for support. The ongoing development and adoption in commercial compilers signal its robustness.

Flang benefits Fortran developers by providing a modern, open-source compiler with LLVM's optimization power. It's suitable for individuals and organizations seeking a reliable and flexible Fortran compiler, especially those looking for an alternative to commercial solutions and benefiting from language advancements. This allows for leveraging LLVM's ecosystem and optimizations.

Summarize:
Share:
Stars
855
Forks
147
Issues
286
Created
9 years ago
Commit
8 days ago
License
OTHER
Archived
No
Updated 7 days ago

Similar Repositories