Skip to content

Files

Latest commit

deff111 · Nov 1, 2023

History

History
36 lines (20 loc) · 1.1 KB

README-en.md

File metadata and controls

36 lines (20 loc) · 1.1 KB

Compiler installation

  1. Download GNU RISC-C GCC according to your host SO. Win32-x64 for Windows or Linux-x64 for Linux.

    • Use version 11.3, for instance: xpack-riscv-none-elf-gcc-11.3.0-1-linux-x64.tar.gz
  2. Extract the downloaded package.

  3. Rename the folder "xpack-riscv-..." to gcc creating the following tree:

./compiler/gcc/bin/+
                   |- riscv-none-elf-gcc 
                   |- (...)	
  1. Update the path in each Makefile:
RISCV_TOOLS_PREFIX = ../compiler/gcc/bin/riscv-none-elf-
  1. Type make to compile.

Windows Subsystem for Linux installation

  1. Install WSL: Microsoft Docs.

  2. Install WSL Ubuntu.

    • Follow this link in order to integrate a compiler in Visual Code.
  3. In the Ubuntu Shell (search for Ubuntu in Windows Start Menu), follow the same above steps.