📑 Table of Contents
LFortran
DevelopersThe LFortran team, led by Ondřej Čertík
ReleaseOctober 9, 2018
Stable release
0.49.0 (alpha) / March 15, 2025
Written inC++
Operating systemCross-platform
TypeCompiler
LicenseBSD License
Websitewww.lfortran.org
Repository

LFortran is an open-source next-generation interactive Fortran compiler based on LLVM. A unique feature is that it can execute the user’s code interactively to allow exploratory work, in addition to compiling it to binaries to run the code on modern architectures such as multi-core CPUs and GPUs. It can be used via WebAssembly[1] and is available on Compiler Explorer.[2]

LFortran is still in the alpha phase. It supports most of Fortran 95 and many features of later standards. It will reach beta when it can reliably compile 10 production-grade, third-party packages used in the scientific community and industry. The current status is 8/10:

Despite being alpha, LFortran has been on the radar of NASA as a representative of compilers supporting type-safe generic programming in Fortran,[3] and on that of SciPy, which hopes it can help deal with the large amount of Fortran libraries that SciPy relies on.[4]

The LFortran project works closely with the US Fortran Standards Committee (J3).[5] It is a NumFOCUS Sponsored Project since 2020.[6] LFortran is a member of the Lcompilers family, and its siblings include LPython and LC.

See also

edit

References

edit
  1. ^ "LFortran in web browsers using WebAssembly". Retrieved 2025-03-07.
  2. ^ "LFortran in Compiler Explorer". The Compiler Explorer Project. Retrieved 2025-03-07.
  3. ^ "Type-safe Generic Programming in Fortran" (PDF). NASA. 2024. Retrieved 2025-03-07.
  4. ^ "The 'eu' in eucatastrophe – Why SciPy builds for Python 3.12 on Windows are a minor miracle". The SciPy Project. 2023-11-08. Retrieved 2025-03-07.
  5. ^ "J3 Discussions about LFortran". US Fortran Standards Committee. Retrieved 2025-03-07.
  6. ^ "LFortran on NumFOCUS". NumFOCUS. 2020. Retrieved 2025-03-07.
edit

📚 Artikel Terkait di Wikipedia

Fortran

Classic Flang G95 GCC (GNU Fortran) IBM XL Fortran Intel Fortran Compiler LFortran LLVM Flang MinGW Open64 Open Watcom Oracle Fortran PGI compilers ROSE Silverfrost

List of Fortran software and tools

Eclipse Intel Fortran Compiler – part of Intel OneAPI HPC toolkit LFortran — LFortran is current, cross-platform, and has IDE support. MinGW – cross compiler

John Backus

Classic Flang G95 GCC (GNU Fortran) IBM XL Fortran Intel Fortran Compiler LFortran LLVM Flang MinGW Open64 Open Watcom Oracle Fortran PGI compilers ROSE Silverfrost

List of compilers

Yes NCSA Yes LLVM Flang LLVM Project Current Yes Yes Yes NCSA Yes LFortran The LFortran team Current Yes Yes Yes BSD Yes FTN95 Silverfrost Current Yes No

GNU Fortran

Classic Flang G95 GCC (GNU Fortran) IBM XL Fortran Intel Fortran Compiler LFortran LLVM Flang MinGW Open64 Open Watcom Oracle Fortran PGI compilers ROSE Silverfrost