dcdourado / advanced-microprocessor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advanced Microprocessor

This Dockerfilecontains exactly the same instructions required by Linux RISC-V GNU Toolchain Tutorial to get to the part where you really start learning Assembly (step 3.b.2 and forward).

Requirements

Setup

We have to give execute permission to these files, so you should check it out, simple bash.

git clone https://github.com/dcdourado/advanced-microprocessor
cd advanced-microprocessor

# Execute permissions
chmod +x bin/volume.sh
chmod +x bin/build.sh
chmod +x bin/start.sh
chmod +x bin/docker-config.sh # We don't run this on host, but the permission is needed to execute inside the container.

# Just the first time! So we can "transfer" code written here to the container
./bin/volume.sh

# You can run it after pulling this repo again to get updates. This command pulls ubuntu docker image, and does some dependencies installing.
./bin/build.sh

Using

For the sake of testability, we've already have inside the container the assembly program main.s, so let's check it out

# First time will take some time... So go stretch your legs
./bin/start.sh 

Notes:

  • You don't even have to start the qemu, since our start.sh script already does that.
  • Files should persist unless you explicitly exclude it from your storage (HD, SSD etc), so don't: --rm.

About

License:GNU General Public License v3.0


Languages

Language:Dockerfile 59.8%Language:Shell 31.1%Language:Assembly 9.1%