aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/fib.rs
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-12-19 19:47:19 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-12-19 19:47:19 +0100
commit8ca27aeeb99a0da43e92e39918aa07c0b1443c07 (patch)
tree14a19a3bb242148d18c29636a013a9d8c1ab159b /examples/fib.rs
parentb58d4b034ad372e13384179721fb345a51febfce (diff)
downloadjuicebox-asm-8ca27aeeb99a0da43e92e39918aa07c0b1443c07.tar.gz
juicebox-asm-8ca27aeeb99a0da43e92e39918aa07c0b1443c07.zip
rt: remove dump() and add disasm(), to directly disasm code using ndisasm if availableHEADmain
Diffstat (limited to 'examples/fib.rs')
-rw-r--r--examples/fib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/fib.rs b/examples/fib.rs
index c38589f..573b27c 100644
--- a/examples/fib.rs
+++ b/examples/fib.rs
@@ -66,9 +66,8 @@ fn main() {
let mut rt = Runtime::new();
let fib = unsafe { rt.add_code::<extern "C" fn(u64) -> u64>(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();
for n in 0..15 {
let fib_jit = fib(n);