Strange SIZE output for -march=rv32ec_zicsr #16
Replies: 2 comments 14 replies
-
I suggest you configure the linker to produce the memory map with both compilers and compare the two files, perhaps you can identify some differences. Anyway, if you use the regular newlib, 2K of RAM might not be enough for the most recent releases. One possible workaround is to try newlib-nano. |
Beta Was this translation helpful? Give feedback.
11 replies
-
I found that the subj is the output of the LD with
and
outputs are different :( |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to compile my project with last x-pack GCC for CH32V003 MCU.
set(CPU_FLAGS "-march=rv32ec_zicsr -mabi=ilp32e -fmessage-length=0 -msmall-data-limit=0 -msave-restore -fsigned-char -fno-common")
and
set(LD_FLAGS "-march=rv32ec -mabi=ilp32e -Wl,--gc-sections -Wl,--print-memory-usage -nostartfiles")
And always got 100% RAM usage.
When I'am switching to old one GCC 8.2 (from Mounriver IDE) with
set(CPU_FLAGS "-march=rv32ecxw -mabi=ilp32e -fmessage-length=0 -msmall-data-limit=0 -msave-restore -fsigned-char -fno-common")
and
set(LD_FLAGS "-march=rv32ecxw -mabi=ilp32e -Wl,--gc-sections -Wl,--print-memory-usage -nostartfiles")
everything looks ok.
Could you tell where should I dig to make the SIZE (%-age of RAM) work well?
Beta Was this translation helpful? Give feedback.
All reactions