Skip to content

Instantly share code, notes, and snippets.

View NotsOverflow's full-sized avatar

NotsOverflow NotsOverflow

View GitHub Profile
@NotsOverflow
NotsOverflow / !wasmllvm.md
Last active June 28, 2018 15:08 — forked from msimpson/!wasmllvm.md
Using WebAssembly in LLVM on Windows

Using WebAssembly in LLVM on Windows

Forewarning: this can be a bit painful and may not work as expected. I've already had issues with even including stdlib through clang.

Installing Dependencies

GIT

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.

@NotsOverflow
NotsOverflow / fony.sh
Created June 1, 2018 10:09 — forked from darach/fony.sh
Example showing how to compile pony executables via LLVM and clang from LLVM IR produced by 'ponyc -rir ...'
#!/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"