News for hackers. Stuff that matters.
Re:Weird things I learned while writing an x86 emulator by WalterBright on Wednesday July 10, 2024 @06:31PM (#40932142)
> you've written an an ARM disassembler

Here's my AArch64 disassembler work in progress:

https://github.com/dlang/dmd/blob/master/compiler/src/dmd/ba...

I add to it in tandem with writing the code generator. It helps flush out bugs in both by doing this. I.e. generate the instruction, the disassemble it and compare with what I thought it should be.

It's quite a bit more complicated than the corresponding x86 disassembler:

https://github.com/dlang/dmd/blob/master/compiler/src/dmd/ba...

There are no comments on this comment yet.