Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 902 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 902 Bytes

COBOL -> WebAssembly proof of concept

This a proof of concept for building COBOL to WebAssembly

How it works

  1. Builds and installs the GNU Multiprecision Library GMP (dependency of GNUCOBOL)

  2. Builds and installs GnuCOBOL

  3. Builds an LLVM bitcode version of GMP

  4. Builds an LLVM bitcode version of libcob

  5. Transpile COBOL source to C using GnuCOBOL

  6. 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

Live Demo

moxon6.github.io/cobol-js-emscripten