I am trying to exploit vector operations in RISC-V Assembly, in particular I need to compile my source code with arch RV64iV or RV64GV. I am using riscv64-unknown-elf- toolchain, with the following parameters:
riscv64-unknown-elf-gcc -o test -march=rv32iv test.s
but I get the following error:
Assembler messages: Fatal error: -march=rv32iv: unsupported ISA subset `v'
Thanks
gcc
on a .s just feeds the asm file toas
from binutils.-march
options are usually meaningless when only assembling, not compiling, but can matter on ARM for thumb vs. ARM... Probably not for RISC-V) – Peter Cordesriscv64-unknown-elf-gcc test.s
and see what the assembler says, instead of erroring out the GCC front-end. – Peter Cordes