rust/Readme.md

40 lines
681 B
Markdown
Raw Normal View History

# Work in progress cranelift codegen backend for rust
2018-10-10 12:12:41 -05:00
> ⚠⚠⚠ This doesn't do much useful yet ⚠⚠⚠
## Building
```bash
2018-07-18 06:35:03 -05:00
$ git clone https://github.com/bjorn3/rustc_codegen_cranelift.git
$ cd rustc_codegen_cranelift
$ rustup override set nightly
$ cargo install xargo
$ git submodule update --init
$ cargo build
```
## Usage
```bash
$ rustc -Zcodegen-backend=$(pwd)/target/debug/librustc_codegen_cranelift.so my_crate.rs --crate-type lib -Og
```
2018-07-18 06:35:03 -05:00
## Building libcore
```bash
$ rustup component add rust-src
$ ./prepare_libcore.sh
2018-07-18 06:35:03 -05:00
$ ./build.sh
```
## Not yet supported
2018-07-19 12:08:37 -05:00
* Checked binops
* Drop glue
2018-07-19 12:08:37 -05:00
* Other call abi's
* Sub slice
2018-07-19 12:08:37 -05:00
* Inline assembly
* Custom sections