How can I compile C code to get a bare-metal skeleton of a minimal RISC-V assembly program?
问题 I have the following simple C code: void main(){ int A = 333; int B=244; int sum; sum = A + B; } When I compile this with $riscv64-unknown-elf-gcc code.c -o code.o If I want to see the assembly code I use $riscv64-unknown-elf-objdump -d code.o But when I explore the assembly code I see that this generates a lot of code which I assume is for Proxy Kernel support (I am a newbie to riscv). However, I do not want that this code has support for Proxy kernel, because the idea is to implement only