I added some code that required stdlib as I removed -nostdlib from Makefile present in root directory of this repository and I see that memory region has been increased that is causing failure even some references are undefined now. What is the allowed memory size in simulation ? Thanks
`/opt/riscv32i/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: firmware/firmware.elf section `.memory' will not fit in region `mem'
/opt/riscv32i/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: warning: firmware/firmware.elf has a LOAD segment with RWX permissions
/opt/riscv32i/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: /opt/riscv32i/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/lib/crt0.o: in function `_start':
(.text+0x0): undefined reference to `__global_pointer$'
/opt/riscv32i/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: (.text+0x8): undefined reference to `__bss_start'
/opt/riscv32i/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: (.text+0x10): undefined reference to `_end'
/opt/riscv32i/lib/gcc/riscv32-unknown-elf/13.2.0/../../../../riscv32-unknown-elf/bin/ld: (.text+0x4c): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [Makefile:137: firmware/firmware.elf] Error 1
`
One can modify cxxdemo to integrate bigger code. It could have memory of 4 Mb that is enough for my case. I don't 100% know what is the design of picoRV32 simulation but it's working. Thanks
I added some code that required stdlib as I removed -nostdlib from Makefile present in root directory of this repository and I see that memory region has been increased that is causing failure even some references are undefined now. What is the allowed memory size in simulation ? Thanks