STACK_MEMORY

Static STACK_MEMORY 

Source
#[unsafe(link_section = ".stack_buffer")]
#[unsafe(no_mangle)]
pub(crate) static mut STACK_MEMORY: [u8; 8192]
Expand description

Size to allocate for the stack.

This creates a static buffer inserted into the .stack_buffer section that the linker script picks up and places at the correct location in RAM.

When compiling for a macOS host, this section attribute is elided as it is incompatible with Mach-O objects and yields the following error: mach-o section specifier requires a segment and section separated by a comma.