Skip to content
 
 

Latest commit

 

History

193,142 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCC Toy RISC-V Backend

This repository is used to show how to build a RISC-V backend step by step.

References

  1. http://atgreen.github.io/ggx/

Getting started

build riscv64-unknown-linux-gnu-gcc

$> git clone https://github.com/riscv-collab/riscv-gnu-toolchain
$> cd /path/to/riscv-gnu-toolchain
$> configure --prefix=/opt/gcc-riscv --with-arch=rv64gc --with-abi=lp64d --enable-multilib
$> make linux

build Toy backend and test

$> cd /path/to/gcc-toy/toy
$> make gcc
$> make 
$> make run

documentation

https://pages.dogdog.run/toolchain/gcc_toy_riscv_backend.html

About

GCC Toy RISC-V backend step by step

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors