3 ms·
Are there efforts to do this for 8-bit processors such as the Z80? Famously they are not very suited for compiling C to because of the limited number of registe
by siraben 6y ago
Are there efforts to do this for 8-bit processors such as the Z80? Famously they are not very suited for compiling C to because of the limited number of registeres, but LLVM does aggressive register allocation that might make it practical.
Edit: Z80 is 8-bit, not 16-bit.
- Narishma 6y agoThat's an 8-bit CPU.
- avian 6y agoYou might be interested in SDCC, a C compiler that supports Z80, among other small architectures. I'm happy to see it's still actively developed. http://sdcc.sourceforge.net/ http://sdcc.sourceforge.net/
- snvzz 6y agoThere's vbcc[0], which, besides 68000, supports a bunch of architectures including 6502 and 6809. [0]: http://www.compilers.de/vbcc.html http://www.compilers.de/vbcc.html
- cbmuser 6y agoThere actually is a Z80 backend for LLVM: > https://github.com/jacobly0/llvm-project https://github.com/jacobly0/llvm-project
- ndesaulniers 6y agoNeat. I've been tempted to try writing a Sharp LR35902 LLVM backend... Probably would be very close to Z80.