Close

Small-C port

A project log for Lion FPGA CPU/Computer

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

leonLeon 04/17/2021 at 16:541 Comment

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.

Discussions

teraz wrote 03/17/2022 at 17:06 point

we wait for llvm backend ;-)

  Are you sure? yes | no