About stack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'd like to know what happens when using big local variables
ex :
void func () {
char mybuff[50000];
/* .. */
}

To avoid problems, i have been used to put instinctivly big local variables as 'static' in order to use data segment instead of stack. But now i'd like to save memory on data segment and reconsider using stack.

Is the stack limited? Is it configurable? Does some dynamic allocation occurs (allocating more stack space)?

I use gcc on PC.
Thanks

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux