Re: Comparing disassembly across changes

Douglas Katzman via Sbcl-help <[email protected]> Thu, 31 Oct 2024 14:48:48 -0400
Newsgroups gmane.lisp.steel-bank.general
Message-ID <CAOrNasx=SwVEHnNj8PQJWLkjZ1EONOv9=duXfi+fOABKbqMufg@mail.gmail.com>
On Thu, Oct 31, 2024 at 1:50 PM Richard M Kreuter via Sbcl-help <
[email protected]> wrote:

>
> (At the moment I think I'd want addresses and instruction operands to be
> redacted, so that two equivalent-modulo-address-space disassemblies
> could compare more easily. I'd imagine somebody's tackled this before.)
>
> You can suppress the line addresses easily:
* (let ((sb-disassem:*disassem-location-column-width* 0)) (disassemble
'eval))

I thought there used to be a way to force disassembly to start from 0 so
that relative jumps within look consistent regardless of the code address,
but I think you have to call make-segment yourself and pass
:virtual-location 0.

_______________________________________________
Sbcl-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sbcl-help