Re:How the Z80's registers are implemented
by derefr on Sunday October 05, 2014 @01:32PM
(#8412823)
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.)
[ Parent
| on HN ]
Re:How the Z80's registers are implemented
by sklogic on Monday October 06, 2014 @08:44AM
(#8415555)
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.