moxon6 / cobol-js-emscripten

Home Page:https://moxon6.github.io/cobol-js-emscripten

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

https://moxon6.github.io/cobol-js-emscripten


Languages

Language:COBOL 39.2%Language:Shell 20.5%Language:CSS 14.7%Language:HTML 12.2%Language:JavaScript 6.2%Language:Dockerfile 5.3%Language:C 2.0%