A fully fonctional and good-looking linux for less than 256mb of ram
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
LLVM_HOME=/usr/local/Cellar/llvm/3.6.2/bin | |
PONY_HOME=/path/to/pony/repo | |
PONY_LIBS=${PONY_HOME}/build/debug | |
TARGET_ARCH=x86-64 | |
OUT_LL="$1.ll" | |
OUT_BC="$1.bc" | |
OUT_S="$1.s" |
Forewarning: this can be a bit painful and may not work as expected. I've already had issues with even including stdlib through clang.
Make sure you have git installed and properly configured before continuing. This is trivial on Windows these days (https://git-scm.com/download/win) but is required to pull down Binaryen and Wabt.
Make sure to add the binary to your PATH variable in Windows.