News for hackers. Stuff that matters.
Re:Clocking a 6502 simulator to 15GHz by woodrowbarlow on Monday April 13, 2020 @05:44PM (#22860438)
a 6502 backend for LLVM has been attempted a couple times[1][2], but the fact that the 6502 only has three registers imposes severe limitations w.r.t. LLVM's calling conventions.

[1] https://github.com/c64scene-ar/llvm-6502

[2] https://github.com/beholdnec/llvm-m6502

Re:Clocking a 6502 simulator to 15GHz by azernik on Monday April 13, 2020 @06:01PM (#22860657)
Other way around - the idea is to create an LLVM frontend for 6502 machine code, and then transpile that code to run on a modern CPU architecture.
Re:Clocking a 6502 simulator to 15GHz by raverbashing on Tuesday April 14, 2020 @04:26AM (#22863754)
That sounds like an interesting project!

You would probably want to add some tricks directly there, maybe register renaming (I don't know if LLVM does "variable renaming", let's put it this way)