So i wanted to try out clang compiler performance and compare it to gcc performance on my hifive1.
I wonder if there is anyone else who have done this before? Because I have some issues.
Since riscv-llvm currently only support .c->.S i still use GCC as a linker though. I’ve got it to compile by replacing C_SRCS in the makefiles with a local _C_SRCS and made a target for compiling .c files to .S files with clang and then added the generated .S files to ASM_SRCS instead.
I got the “hello” and “led_fade” examples to work fine but do have some issues with coremark and dhrystone which both ends up with a trap and exitcode 0x8 which i have no idea what it means.
I have not gotten run_debug to work since it crashes before gdb has a change to attach it seems.
Anyone else want to give this a shot or have some ideas on how I could go by debugging this?
Thanks in advance