Hacker News new | ask | show | jobs
by Yoric 5 days ago
Sounds very cool!

> Custom Zydis -> LLVM IR lifter (bo3_lift) compiling Core BO3 into 81 parallel ARM64 shards (-mcpu=apple-m*, strict TSO ordering), differentially tested against Rosetta x86_64 execution.

I'm curious: how do you do that? LLVM IR is quite high-level when compared to x86, plus register-agnostic. Or perhaps it's ok to do a dumb-ish lift, ignoring any high-level IR opcode and register allocation, and LLVM's optimizer is good enough + the arm64 is fast enough that it doesn't matter too much?

Also, I don't understand what you write about shards. Does this mean that you've turned essentially sequential code in original BO3 into largely parallel one in your recompile? If so, how do you manage?