Skip to content

rajanmaghera/RISCbuddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RISCbuddy

A simple RISC-V code analysis tool for checking basic errors in RISC-V assembly code.

Features

  • Check for unreturned labels by checking for labels that are not used as jump targets
  • Check for outside functions calling labels
  • Checking what labels are inside functions
  • Checking register saving convention
  • Checking register argument conventions
  • Checking all accesses to the stack and seeing if they line up
  • and more in the future

This code is based on the CMPUT 415 GeneratorBase code.

GeneratorBase

The base cmake setup for the generator assignment.

Author: Braedy Kuzma ([email protected])
Updated by: Deric Cheung ([email protected])

Usage

Building

Linux

  1. Install git, java (only the runtime is necessary), and cmake (>= v3.0).
    • Until now, cmake has found the dependencies without issues. If you encounter an issue, let a TA know and we can fix it.
  2. Make a directory that you intend to build the project in and change into that directory.
  3. Run cmake <path-to-Generator-Base>.
  4. Run make.
  5. Done.

Pulling in upstream changes

If there are updates to your assignment you can retrieve them using the instructions here.

  1. Add the upstream as a remote using git remote add upstream <clone-link>.
  2. Fetch updates from the upstream using git fetch upstream
  3. Merge the updates into a local branch using git merge <local branch> upstream/<upstream branch>. Usually both branches are master.
  4. Make sure that everything builds before committing to your personal master! It's much easier to try again if you can make a fresh clone without the merge!

Once the remote has been added, future updates are simply the fetch and merge steps.

About

A RISC-V assembly analysis tool built with ANTLR4.

Resources

License

Stars

Watchers

Forks