Replies: 2 comments
-
Heap is not the right term here: from what I saw in my experiments, a big array is pre-loaded into a different section in the ELF binary called ".rodata" (for the reference, ".text" is the section with the code). In regular app execution, this section is loaded into read-only memory. To fix this, the linker script should be fixed such that it will load the ".rodata" section to D_MEM (or find a way to force the compiler not to do this trick) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
while defining an array , if array smaller then 4 then all goes well :
in c:
after compile:
but with larger arrays:
c:
after compile:
no assigning the values
Beta Was this translation helpful? Give feedback.
All reactions