Hacker News new | ask | show | jobs
by derefr 4271 days ago
It'd certainly be interesting to write a C compiler codegen target for the 6502 that treated the zero-page as registers (and a lot easier to map modern compiler intrinsics to than the tiny base register set.)
2 comments

It was discussed recently in LLVM mailing list: http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-July/074530....

Chances are, someone is already working on an implementation.

Some years ago I worked on a C compiler for a processor, which, like the 6502, had no general-purpose registers and a ‘fast page’, and we did exactly that.
TI9900?