Next: , Previous: libstack.a, Up: libstack.a


6.3.1 Minimum stack setting

Most large tools need more stack than the default 4096 bytes. If your tool is one of them you can either rely on the user being able to raise the current stack or you can let libnix raise the stack for you. At startup this module checks if the current stack is large enough for your needs and switches to a new one if not. All you have to do is to provide a variable

unsigned long __stack={required stacksize};

somewhere in your code and to link with the appropriate swapstack.o module.