Problem in src/Makefile
hyf6661669 opened this issue · 1 comments
hyf6661669 commented
In src/Makefile, you should set ASFLAGS = -march=rv32i
. For example, if I add some codes (the related operations is not included in rv32i) like this in main.c
:
Then the riscv-gcc will try to use the standard library function, without ASFLAGS = -march=rv32i
, some ERRORs occurs:
With ASFLAGS = -march=rv32i
, the compilation can succeed, and we can see the desired asm codes in darksocv.lst
like this:
samsoniuk commented
Thank you for pointing the problem HYF! The Makefile is fixed!