Wasn't sure where to ask for help, no one seemed to be in IRC #338
-
I've been getting an error |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Well you have too many globals (that go in the .bss section), apparently. You should try not to use globals. See here: https://ce-programming.github.io/toolchain/static/coding-guidelines.html#avoid-global-variables As you can see, the heap (memory for dynamic allocation, what |
Beta Was this translation helpful? Give feedback.
Well you have too many globals (that go in the .bss section), apparently.
You should try not to use globals.
See here: https://ce-programming.github.io/toolchain/static/coding-guidelines.html#avoid-global-variables
and there: https://ce-programming.github.io/toolchain/static/faq.html#what-is-the-c-runtime-memory-layout
As you can see, the heap (memory for dynamic allocation, what
malloc
uses) and the bss (space for uninitialized static data, both variables and constants) share the same memory space, and is limited to around 61 KB.If you go above that, well, you get this error message.