ssloy / TinyPrograms

Tiny programs from various sources, for testing softcores

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TinyPrograms

A collection of tiny programs from various sources, for testing softcores. Includes my simple library to render 80x25 and 80x50 "graphics" in an Ansi terminal (this makes big pixels, but they have 16 million colors !)

How to compile

Just gcc <program name>.c -o <program name> and that's all. Some programs (pi.c, tinyraytracer.c) will need to be linked with the math library (gcc <program name>.c -lm -o <program name>). And of course, if you are cross-compiling (for your own RISC-V softcore), you will need to install the RISC-V toolchain and use riscv-gcc instead (more information here)

Links

About

Tiny programs from various sources, for testing softcores


Languages

Language:C 98.0%Language:Assembly 2.0%