Skip to content

Vincenzo-Petrolo/Revived

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReViveD: Risc-V to Dlx toolchain

Given that last GCC compiler for DLX architecture has been lost (thus the name of this project :-) , my aim is to bring a new way of cross-compiling C codes for DLX passing through RISC-V cross-compiler.

Compiling C codes

riscv32-unknown-elf-gcc -S -ffixed-t3 <some_code.c>

Running the tool

The input assembly file should be RISC-V assembly file obtained by cross-compilation using gcc cross-compiler.

python3 revived.py --input=<file.s> [--output=<output.s>]

Compiling the DLX assembly

Move into the dlx_asm directory and run the assembler.

./assembler.sh <code.s>

Releases

No releases published

Packages

No packages published