LFORTRAN: IMPLEMENTING A CUSTOM WASM BACKEND
- Mentors
- Ondřej Čertík, czgdp1807, Rohit Goswami
- Organization
- Fortran-lang
- Technologies
- javascript, c++, git, fortran, webassembly, NextJs, Emscripten
- Topics
- compilers, web
This project is about adding support of generating WASM using the LFortran Compiler. It focuses on building a custom ASR (Abstract Semantic Representation) to WASM Backend for the LFortran Compiler.
As part of this project, we develop:
‣ A WASM Backend for LFortran using which it can compile Fortran code to WebAssembly as Target
‣ A WAT Backend for LFortran
‣ A Web-Frontend where we deploy the LFortran wasm binary and can see it live in action.
‣ LFortran (along with its runtime library) compiles to WASM using emscripten. The compiled compiler (in binary wasm format) can be served to users statically and users can enjoy running Fortran inside their browsers.
The live website which hosts the LFortran compiler (compiled to binary wasm) is deployed at https://dev.lfortran.org/.