I have foo[NUMBYTES] __attribute__((section(".bar")));
Why using this attribute .bar section? Because foo[] provides already some memory space. Is this for easy memory management?
I have foo[NUMBYTES] __attribute__((section(".bar")));
Why using this attribute .bar section? Because foo[] provides already some memory space. Is this for easy memory management?
For bare metal code that run without an operating system, the section attribute ,__attribute__((section(".bar")))
, is often used to:
init section
in linux/init.h) so it can free them later to save RAM.Search your linker script for references to the named section (.bar
) and you could probably make a good guess for its use.