This repo has moved to: https://gitlab.com/mrisc32/mc1-sdk
This is a software development kit (SDK) for the MC1 computer.
Prerequisites:
- Install CMake, Make and a compiler for your host system. For Ubuntu:
sudo apt install build-essential cmake
- Install the MRISC32 GNU toolchain.
Installation:
make
make DESTDIR=/foo/bar install
mrisc32-elf-gcc -O2 -o program program.c \
-I/path/to/mc1-sdk/include \
-L/path/to/mc1-sdk/lib \
-mno-crt0 -lmc1crt0-app -lmc1 -T app-xram.ld
There are different ways that a program can be linked:
CRT0 | Linker script | Description |
---|---|---|
-lmc1crt0-app |
-T app-xram.ld |
Application that is loaded into XRAM |
-lmc1crt0-app |
-T app-vram.ld |
Application that is loaded into VRAM |
-lmc1crt0-boot |
-T boot-vram.ld |
Boot program that is loaded into VRAM |