Is there a limit for the total variables size on the stack? <p>While coding should we consider some limit on the total size of variables created on the stack? If yes, on what basis should we decide it? Is it dependent on OS, Memory Availability etc? Are there any compiler options which can check this?</p> <p>Any pointers in the direction will also be helpful.</p>