From b5935c796ab0b2c478b4480a0dfdacb8e0dfe40e Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 19 Dec 2024 18:47:57 +0000 Subject: deploy: 8ca27aeeb99a0da43e92e39918aa07c0b1443c07 --- src/add/add.rs.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/add') diff --git a/src/add/add.rs.html b/src/add/add.rs.html index 580daa0..ba76c7d 100644 --- a/src/add/add.rs.html +++ b/src/add/add.rs.html @@ -36,8 +36,7 @@ 35 36 37 -38 -39
//! Add example.
+38
//! 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.
@@ -69,9 +68,8 @@
     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);
-- 
cgit v1.2.3