aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/add.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/add.rs')
-rw-r--r--examples/add.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/add.rs b/examples/add.rs
index 3ad8893..fee5392 100644
--- a/examples/add.rs
+++ b/examples/add.rs
@@ -30,9 +30,8 @@ fn main() {
let mut rt = Runtime::new();
let add42 = unsafe { rt.add_code::<extern "C" fn(u32) -> u32>(asm.into_code()) };
- // Write out JIT code for visualization.
- // Disassemble for example with `ndisasm -b 64 jit.asm`.
- rt.dump();
+ // Disassemble JIT code and write to stdout.
+ rt.disasm();
let res = add42(5);
assert_eq!(res, 47);