Repository navigation
RISC-V cross-toolchain v2 (wchar-enabled, riscv32-buildroot-linux-uclibc-gcc 13.3.0)
Pre-release
Pre-release
Prebuilt cross-compiler for this project's exact target: bFLT (no-MMU) binaries, uClibc, riscv32ima.
Supersedes toolchain-v1 — this build has wide-char (wchar_t) support enabled, needed for ncurses/nano. Built with buildroot 2024.05's tinyrv32ima_defconfig (from tvlad1234/buildroot-tiny-rv32ima) + BR2_TOOLCHAIN_BUILDROOT_WCHAR=y, hosted on GCC 12 (needed to bootstrap GCC 13 cleanly on a modern GCC 14+ host — see PLAN.md for why).
Usage:
tar xzf riscv32-tinyrv32ima-toolchain-v2-wchar.tar.gz
export PATH=$PWD/host/bin:$PATH
riscv32-buildroot-linux-uclibc-gcc -mabi=ilp32 -fPIE -pie -static -march=rv32ima -Os -s -Wl,-elf2flt=-r yourprogram.c -o yourprogram