https://github.com/rossant/rust-emscripten-passes
LLVM passes for compiling Rust code with Emscripten
https://github.com/rossant/rust-emscripten-passes
Last synced: 4 months ago
JSON representation
LLVM passes for compiling Rust code with Emscripten
- Host: GitHub
- URL: https://github.com/rossant/rust-emscripten-passes
- Owner: rossant
- Created: 2015-02-17T09:43:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-25T04:02:42.000Z (about 11 years ago)
- Last Synced: 2025-01-20T23:27:56.060Z (12 months ago)
- Language: C++
- Size: 105 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
LLVM passes for compiling Rust code with Emscripten. The code could use some
cleanup, but it more or less works. Currently it appears only
`-break-struct-arguments` is needed, when compiling with [patched
emscripten-fastcomp][em-patch].
[em-patch]: https://github.com/epdtry/emscripten-fastcomp/commit/1331b061fcb813dad71719792a89fa5cc396864a
Compile with:
make BreakStructArguments.so \
LLVM_PREFIX=.../emscripten-fastcomp/build
Use with:
.../emscripten-fastcomp/build/bin/opt -load=BreakStructArguments.so \
-O3 -break-struct-arguments -globaldce \
input.ll -S -o output.ll