Hi, On Sun, 2024-01-28 at 04:41 +0100, Sophie 'Tyalie' Friedrich via Gcc wrote: > Hello dear people, > > I want to try building a GCC compiler backend for the STM8 > micro-controller target in order to make this wonderful architecture > more accessible. > > But as I'm fairly new in this area of building compiler backends for > GCC, I would need a bit of guidance / read material to get started. Do > you have recommendations for anything? And is there interest in such work? > > With best regards > Tyalie
GCC might not be a bit difficult for 8-bit targets. For example, if you look at RL78, it had to resort to some virtual register set workaround because GCC usual register allocation at that time couldn't deal with it. 8-bit targets like AVR seem to be a bit easier. Some other interesting options for 8-bit targets are SDCC (STM8 already supported it seems) and llvm-mos project (LLVM port originally for 6502). Cheers, Oleg