Close

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 Lion computer with 32bit integers instead of the 16bit that the original made for x86 supported. 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 finished the c library routines except the file related ones that need some work to be done to the system too. Tiny Basic in Lion plays the role of a command line interpreter and I have to make some better file and memory handling routines.

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

Discussions