Im just wondering how this affects programs writtin in c or c++. When i run ulimit -a on a linux system i see that my default stack size is 10240. How does this effect my programs? meaning if i a create a stack based object of a size bigger then 10240 what should happen? Does that setting indicate how much space a application has? How does the stack work in a c or c++ app? any good references would be nice. Thanks
The kernel will allow your stack to grow to that size and no more. If you attempt to allocate more stack space than that, you will seg fault as soon as you access the data that is beyond the 10240K limit.