logoalt Hacker News

adrbn • today at 12:01 PM • 3 replies • view on HN

Yes, it uses two already existing tools for the heavy lifting. Remill lifts the x86 machine code to LLVM IR, and LLVM then compiles that IR to ARM64. And no, nobody translates the assembly by hand luckily, not me nor the agent. All of these 150k functions go through this automatic chain I explained before.

What I wrote with Claude is basically everything else: custom LLVM passes, a hand-written runtime that replaces the Windows calls, a Direct3D 11 to Metal layer and the shader translation! Plus fixing the crashes one by one by iterating and playing. All details are in the Pipeline section of the README if you're interested: https://github.com/adrbn/bo2-mac#pipeline


Replies

cedws • today at 12:16 PM

Thanks.

doodlesdev • today at 12:33 PM

[dead]

unwind • today at 12:50 PM

Uh it's a cool project for sure even if its getting hard to keep these apart and seems kind of strange to do all that targeted solely on game ... but cool!

This is very confusing to read, though:

What I wrote with Claude: [...] a hand-written runtime

To me you have to pick one or the other. Claude has no hands.