This macro function controls the __stack_sizeconstant, which specifies the stack size (in bytes) of the program's main task, overriding the default value. The value specified must be at least 1024 bytes or the program will fail to launch. The default stack size is 8192 bytes.

Note that the size must be a constant expression.

Example:

This would be placed in one of your C files outside the scope of any module.