diff options
Diffstat (limited to 'examples/add.rs')
-rw-r--r-- | examples/add.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/add.rs b/examples/add.rs index 8cd1984..ba887c4 100644 --- a/examples/add.rs +++ b/examples/add.rs @@ -1,3 +1,11 @@ +//! Add example. +//! +//! Jit compile a function at runtime (generate native host code) which calls a function defined in +//! the example based on the SystemV abi to demonstrate the [`juicebox_asm`] crate. + +#[cfg(not(any(target_arch = "x86_64", target_os = "linux")))] +compile_error!("Only supported on x86_64 with SystemV abi"); + use juicebox_asm::prelude::*; use juicebox_asm::Runtime; use Reg64::*; |