femscripten icon indicating copy to clipboard operation
femscripten copied to clipboard

Partial compilation to libraries

Open smikes opened this issue 10 years ago • 1 comments

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

smikes avatar Nov 16 '14 21:11 smikes

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

StarGate01 avatar Apr 21 '20 04:04 StarGate01