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

From: Neil Toronto (neil.toronto at gmail.com)
Date: Wed May 21 18:12:24 EDT 2014

On 05/21/2014 02:09 PM, Sam Tobin-Hochstadt wrote:
> 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
>>

That's crazy awesome. What were the improvements?

Neil ⊥


Posted on the dev mailing list.