Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Latest commit

 

History

History
51 lines (35 loc) · 1.39 KB

README.md

File metadata and controls

51 lines (35 loc) · 1.39 KB

This repo has moved to: https://gitlab.com/mrisc32/mc1-sdk

MC1 SDK

This is a software development kit (SDK) for the MC1 computer.

Usage

Build & install the SDK

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

Building programs for MC1

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

Documentation

Resources

  • Tools.
  • C/C++ and assembler headers and libraries for interfacing the MC1 hardware.
  • Linker scripts for various executable models.
  • Support.