Our great sponsors
-
AECforWebAssembly
A port of ArithmeticExpressionCompiler from x86 to WebAssembly, so that the programs written in the language can run in a browser. The compiler has been rewritten from JavaScript into C++.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
For AEC-to-WebAssembly: bash if [ $(command -v git > /dev/null 2>&1 ; echo $?) -eq 0 ] then git clone https://github.com/FlatAssembler/AECforWebAssembly.git cd AECforWebAssembly elif [ $(command -v wget > /dev/null 2>&1 ; echo $?) -eq 0 ] then mkdir AECforWebAssembly cd AECforWebAssembly wget https://github.com/FlatAssembler/AECforWebAssembly/archive/refs/heads/master.zip unzip master.zip cd AECforWebAssembly-master else mkdir AECforWebAssembly cd AECforWebAssembly curl -o AECforWebAssembly.zip -L https://github.com/FlatAssembler/AECforWebAssembly/archive/refs/heads/master.zip # Without the "-L", "curl" will store HTTP Response headers of redirects to the ZIP file instead of the actual ZIP file. unzip AECforWebAssembly.zip cd AECforWebAssembly-master fi if [ $(command -v g++ > /dev/null 2>&1 ; echo $?) -eq 0 ] then g++ -std=c++11 -o aec AECforWebAssembly.cpp # "-std=c++11" should not be necessary for newer versions of "g++". Let me know if it is, as that probably means I disobeyed some new C++ standard (say, C++23). else clang++ -o aec AECforWebAssembly.cpp fi cd analogClock ../aec analogClock.aec npx -p wabt wat2wasm analogClock.wat node analogClock
Related posts
- Gren 0.3: Source maps
- Koja je najapsurdnija poruka o pogrešci koju je neki vaš program ispisivao?
- What is the most absurd error message your compiler/interpreter was once outputting?
- Poteškoće s pronalaskom posla
- Why does GCC run in Docker produce around 30% smaller statically linked C++ executables than GCC run on Linux? AECforWebAssembly is 1.08 MB large if compiled using GCC 13.1 in Docker, but it is 1.59 MB if compiled using GCC 13.1 on Debian.