3 ms·
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
by derefr 12y 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.)
- sklogic 12y agoIt was discussed recently in LLVM mailing list: http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-July/074530.html http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-July/074530.... Chances are, someone is already working on an implementation.
- kps 12y agoSome 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.
- kjs3 12y agoTI9900?