[racket-dev] Easy disassembly of JIT-compiled procedures

From: Sam Tobin-Hochstadt (samth at cs.indiana.edu)
Date: Wed May 21 16:09:36 EDT 2014

Racketeers,

Thanks to some improvements from Matthew, my `disassemble` package is
now much easier to use.

[samth at punge:~/sw/disassemble (master) plt] racket
Welcome to Racket v6.0.1.10.
> (require disassemble)
> (define (const x) 1)
> (disassemble const)
00000000  8943FC            mov [ebx-0x4],eax
00000003  83C3FC            add ebx,byte -0x4
00000006  B803000000        mov eax,0x3
0000000B  83C41C            add esp,byte +0x1c
0000000E  5F                pop edi
0000000F  5E                pop esi
00000010  5B                pop ebx
00000011  5D                pop ebp
00000012  C3                ret
>

Sam

Posted on the dev mailing list.