Skip to content

Latest commit

 

History

History

cannon-test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Cannon Test

Bootstraped with Rust-Cannon-Template

Prerequisites

  • This repo uses just for build scripts. Install it with
cargo install just

Building with Docker

Preferred build method is using docker. Run with

just build

Building Locally (Tested on Ubuntu 22.02 only)

Dependencies

sudo apt install \
    build-essential \
    g++-mips-linux-gnu \
    libc6-dev-mips-cross \
    llvm \
    clang \
    python3 python3.8-venv python3-pip 

Building

Build an elf with

cargo build -p cannon-test --release -Zbuild-std

patch the elf for Cannon

cannon load-elf --path ../target/mips-unknown-none/release/cannon-test --patch stack

This should produce a state.json and meta.json which can be used to run the program in the cannon emulator.