machina
Manage and execute assembly at runtime.
Crossplatform?
Yap.
Why?
Emulators, JIT, dynarec, etc.
Install
To build the tests you need sam.
In Cargo.toml
:
[]
= "*"
If you work with many instructions, you may want to enable optimization (only applied to Cache
):
[]
= "*"
= ["optimize"]
Example
extern crate machina;
extern crate sam; // just to keep it simple
use ;
use Memory;