g++ for riscv32 "bare metal"
Jim Wilson
jimw@sifive.com
Thu Jan 23 20:09:00 GMT 2020
On Wed, Jan 22, 2020 at 1:58 PM Kai Ruottu <kai.ruottu@wippies.com> wrote:
> The big question then is whether the newlib sources support an embedded
> riscv32 target at all.
We have support, but libgloss only has simulator support. There is no
RISC-V rom monitor standard as yet, and hence no generic riscv target
support. A bare metal compiler built using newlib/libgloss can
produce code that runs on qemu, riscv-isa-sim/spike, gdb sim, etc.
There are some companies that have their own BSPs. For instance
SiFive has the sifive/freedom-e-sdk project on github that has support
for bare metal programming on SiFive boards.
Jim
More information about the Gcc-help
mailing list