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

SDK for developing applications for the MC1 computer

Notifications You must be signed in to change notification settings

mrisc32/mc1-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.