Skip to content

How to build toochain with RISCV_B support? #558

Closed Answered by stnolting
agamez asked this question in Q&A
Discussion options

You must be logged in to vote

The B ISA extension is already supported by upstream GCC - but I think it requires to specify the "sub-extensions" instead of just B as this has not been actually specified yet.

One of the latest toolchain I have build already support bit-manipulation instructions: https://github.com/stnolting/riscv-gcc-prebuilt/releases/tag/rv32i-4.0.0. This toolchain was configured as rv32i only (!), so all the pre-compiled / builtin libraries only used the base ISA. Anyway, it happily emits bit-manipulation instructions when properly invoked:

RV32IMCUZicsr_Zifencei_Zba_Zbb_Zbc_Zbs

(from https://github.com/stnolting/neorv32-riscof/blob/ac347f7077a867f1557d4ae8e423a7088de3f05b/plugin-neorv32/neorv32_isa…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@agamez
Comment options

@stnolting
Comment options

@agamez
Comment options

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