Skip to main content

jit/
lib.rs

1#[cfg(not(all(target_os = "linux", target_arch = "x86_64")))]
2compile_error!("remu requires Linux x86-64!!");
3
4mod abi;
5pub mod compiler;
6mod constants;
7mod image;
8mod mmu;
9pub mod process;
10mod remi;
11mod runtime;
12
13pub use abi::*;
14pub use constants::*;
15
16pub use image::{LoadSegment, ProgramImage, ProgramSymbol};
17pub use mmu::{GuestMemory, PagePerms};
18
19pub use remi::CompiledJit;
20pub use runtime::{JitRuntime, RemuConfig, RuntimeSnapshot};
21
22pub type JitResult<T> = Result<T, Box<dyn std::error::Error>>;
23
24// todo - schöner
25pub const ABI_CONSTANTS: &str = include_str!("constants.rs");