Skip to content

moxon6/cobol-js-emscripten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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