Skip to content

riscv32-zephyr-elf don't support it anymore? #624

Answered by keith-packard
ilyhcg asked this question in Q&A
Discussion options

You must be logged in to vote

32-bit risc-v uses the same toolchain as 64-bit risc-v. It's called riscv64-zephyr-elf because that toolchain builds for 64-bit targets by default. You specify -march= and -mabi= flags to tell the tools which architecture you're using:

riscv64-zephyr-elf-gcc -march=rv32imac -mabi=ilp32 -c hello-world.c

builds for a typical 32-bit integer-only target.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ilyhcg
Comment options

Answer selected by stephanosio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #623 on February 06, 2023 03:48.