This post discusses the challenges and options for compiling Fortran code to WebAssembly. It explores different Fortran compilers, including LFortran and LLVM Flang, and demonstrates how to compile and use BLAS and LAPACK libraries in WebAssembly.
Table of contents
Interlude — Calling Fortran subroutines from CReturning to LLVM FlangInterlude — Calling a Fortran routine from JavaScriptThe Fortran runtime library: A journey to “Hello, World!”Hacking around the issueSort: