I'm writing a generalised framework for games and real-time applications, compiled with gcc. For purposes of efficiency, I'd like all instances of core framework structs to be allocated on the stack.
Depending on the size of projects built using the framework, it seems that stack size may in some instances need to be increased from the typical default (1-2 MB?).
Can stack size be changed on all platforms which gcc supports? Are there ever hard limits in OSes that prevent the stack size from being increased? Are there any other typical issues faced when increasing stack size, including when using multiple threads?