/RISC-V-Recursive-Examples

Some recursive function examples written by RV32.

Primary LanguageAssembly

RISC-V-Recursive-Examples

This repository contains 3 basic recursion examples written by RISC-V using Venus:

  • Factorial
  • Fibonacci
  • SumSquare

The function call & recursion convention follows RV32GC.

In the Fibonacci folder, I write both versions with cache and without cache. C source files are provided in the corresponding folders.