logoalt Hacker News

LLVM-MOS – Clang LLVM fork targeting the 6502

52 pointsby jdmoreiratoday at 5:02 PM5 commentsview on HN

Comments

mtkleintoday at 5:53 PM

This was a nice surprise when learning to code for NES, that I could write pretty much normal C and have it work on the 6502. A lot of tutorials warn you, "prepare for weird code" and this pretty much moots that.

self_awarenesstoday at 6:49 PM

Rust fork that works on this LLVM fork, for 6502, genering code that can be executed on a Commodore-64: https://github.com/mrk-its/rust-mos

michalplebantoday at 7:02 PM

How does it compare to cc65 with regard to code size and speed?

show 1 reply
cmrdporcupinetoday at 6:35 PM

It's been amazing to see the progress on this project over the last 5 years. As someone who poked around looking at the feasibility of this myself, and gave up thinking it'd never be practical, I'm super happy to see how far they've gotten.

Maybe someday the 65816 target will get out there, a challenge in itself.