cobol-js-emscripten
cobol-js-emscripten copied to clipboard
COBOL -> WebAssembly proof of concept
This a proof of concept for building COBOL to WebAssembly
How it works
-
Builds and installs the GNU Multiprecision Library GMP (dependency of GNUCOBOL)
-
Builds and installs GnuCOBOL
-
Builds an LLVM bitcode version of GMP
-
Builds an LLVM bitcode version of libcob
-
Transpile COBOL source to C using GnuCOBOL
-
Build WebAssembly (and helper JS) using emscripten, linking in the GMP and libcob bitcode
Testing it out
The whole development environment is contained in the .devContainer
directory.
Use Docker and the containers remote extension for VSCode to reliably reproduce this environment