Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moxon6/cobol-js-emscripten
https://github.com/moxon6/cobol-js-emscripten
cobol emscripten pong wasm webassembly
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/moxon6/cobol-js-emscripten
- Owner: moxon6
- Created: 2020-05-10T18:46:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T17:49:59.000Z (over 1 year ago)
- Last Synced: 2024-04-21T23:56:42.456Z (5 months ago)
- Topics: cobol, emscripten, pong, wasm, webassembly
- Language: COBOL
- Homepage: https://moxon6.github.io/cobol-js-emscripten
- Size: 1.26 MB
- Stars: 112
- Watchers: 3
- Forks: 5
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-list - cobol-js-emscripten
README
# 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](https://gmplib.org/) (dependency of GNUCOBOL)
1. Builds and installs [GnuCOBOL](https://www.gnu.org/software/gnucobol/)1. Builds an LLVM bitcode version of GMP
1. Builds an LLVM bitcode version of libcob1. Transpile COBOL source to C using GnuCOBOL
1. Build WebAssembly (and helper JS) using [emscripten](https://emscripten.org/), 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](https://code.visualstudio.com/docs/remote/containers) for VSCode to reliably reproduce this environment
## Live Demo
[moxon6.github.io/cobol-js-emscripten](https://moxon6.github.io/cobol-js-emscripten)