Small-C port

A project log for Lion FPGA CPU/Computer

A 16-bit FPGA CPU I call Lion CPU and a computer, the Lion computer. Everything built from scratch.

LeonLeon 04/17/2021 at 16:540 Comments

I almost finished the porting of Small-C to the Lion32 computer with 32bit integers instead of the 16bit that the original made for x86. I also made a linker for combining the object files it produces to a single executable file.

I had a hard time with the different cpu endianness and the different cpu word size but I believe now I have solved all these problems.

I almost finished the c library routines. Tiny Basic in Lion plays the role of a command line interpreter and so I added file and memory handling routines to it.

If I could add structures in Small-C compiler it would be perfect and floating point would be nice too.