darklife/darkriscv

Problem in src/Makefile

hyf6661669 opened this issue · 1 comments

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:
image

Then the riscv-gcc will try to use the standard library function, without ASFLAGS = -march=rv32i, some ERRORs occurs:
image

With ASFLAGS = -march=rv32i, the compilation can succeed, and we can see the desired asm codes in darksocv.lst like this:
image

Thank you for pointing the problem HYF! The Makefile is fixed!