Skip to content

Instantly share code, notes, and snippets.

@EgorBo
Created November 10, 2018 12:34
Show Gist options
  • Save EgorBo/63a65b62efb51f3a9030b482d8a2403f to your computer and use it in GitHub Desktop.
Save EgorBo/63a65b62efb51f3a9030b482d8a2403f to your computer and use it in GitHub Desktop.
PREFIX=/prj/mono-bin
git clone https://github.com/mono/mono.git --recursive mono-m
cd mono-m
./autogen.sh --prefix=$PREFIX --enable-llvm && make -j10 && make install
PATH=$PREFIX/bin:$PATH
#now:
csc -o P.cs && mono --aot=llvm p.exe && mono p.exe
#or with additional llvm arguments for opt and llc:
csc -o P.cs && mono --aot=llvm,llvmopts="-loop-vectorize",llvmllc="-fp-contract=fast" p.exe && mono p.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment