femscripten
femscripten copied to clipboard
Partial compilation to libraries
Right now I have only figured out how to use emscripten to produce a 'full binary' version that includes FORTRAN code. But it would be more useful if I could produce a js-file that had (e.g.) the LAPACK functions transpiled to JS that could be used anywhere -- essentially the analogue of a shared library, liblapack.a
I managed to build a toolchain based on gfortran, dragonegg and emscripten. Then I compiled libgfortran to webassembly in order to provide a runtime. This enabled me to actually compile and run most of LAPACK and BLAS. It works: https://github.com/StarGate01/Full-Stack-Fortran