Skip to content

Examples of converting C programs to RISC-V assembly (RV32I, ILP32)

Notifications You must be signed in to change notification settings

cgshep/riscv-test-programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

riscv-test-programs

Examples of converting C programs to RISC-V assembly (RV32I, ILP32).

Requirements

Usage

  1. make to produce ASM files in ./asm-out and the binary main. Note that the ASM files are a result of the RISC-V GCC with the -S flag. The results contain pseudoinstructions that won't actually be the ones executed by the CPU
  2. To get the actual binary instructions, use the RISC-V objdump on the main binary with riscv64-unknown-elf-objdump -d -M no-aliases main

About

Examples of converting C programs to RISC-V assembly (RV32I, ILP32)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published