05-11-2014, 03:34 AM
You have to set it dynamically in Linux as it uses ELF binary's which date back to system V unix. So if you're doing the allocations in the prologue for main there's no time to change the size before you stackoverflow.