I designed RISCV32IM processor, and I used "riscv32-unknown-elf-gcc" to generate code for testing.
However, the PC(instruction memory address) value and data memory address of the generated code had arbitrary values. I used this command:
riscv32-unknown-elf-gcc -march=rv32im -mabi=ilp32 -nostartfiles test.c
Can I know if I can set the instruction and data memory address I want?
Thanks.
Thank you for answer.
I designed only HW, and this is my first time using the SW tool chain. Even if my question is rudimentary, please understand.
The figure is the result of the "-v" option. enter image description here
I can't modify the script file because I use riscv tool chain in DOCKER environment. So, I tried to copy the script file (elf32lriscv.x), modify it. I modified it to 0x10000 ==> 0x00000. The file name of the copied script is "test5.x".
And it was executed as follows. What am I doing wrong?