I need a C compiler for my homebrew CPU project SPAM-1.

I tried porting GCC and LLVM but it's a hopeless task. 

Luckily the VBCC compiler is a hell of a lot easier to port and there are some other examples to look at.

If you want to see the VBCC code then 

I've written some test scripts here for the compiler https://github.com/Johnlon/spam-1-vbcc/tree/main/demo

The SPAM-1 back end for the compiler is https://github.com/Johnlon/spam-1-vbcc/blob/main/vbcc/machines/g/machine.c