rjit is a toy runtime assembler written in Rust.
By using this, you can run or test the assembly directly without linking process.
- x86_64 assembly (NOT 32bit)
- AT&T syntax support.
$ cargo build --release
// exit.s will exit with code 42.
$ ./target/release/rjit --file=./examples/exit.s
// check exit code.
$ echo $?
-> 42
If you want to check internal process , use gdb.
- nop
- add
- sub
- mov
- ret
- int
- syscall
also, please check examples directory.
- input is one assembly(.s) file.
- no libc support.
- but I'm thinking of adding my own implementation for libc that doesn't need the linking process. (ex: printf, malloc, etc...)