| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | trap 0005 |
Hallo Henk!
Antwort auf eine Message von Henk den Adel an All:
HdA> I would appreciate if anyone could explain me why the stack is not
HdA> automatically chosen to be sufficiently large, or better how to
HdA> order the compiler to choose the right stack size. I'm using ibm's C
HdA> compiler, version 2.01.
void stackEater(int x)
{
if (x==0) return;
char c[1000];
x--;
stackEater(x);
}
main(int argc, char *argv[])
{
stackEater(atoi(argv[1]));
}
how much stack does this program need?
Servus, Mario!
--- FleetStreet 1.18 PR#2
* Origin: LC/32 Development Team, KirchnerSoft, Vienna, Austria (2:310/14.11)SEEN-BY: 50/99 54/99 270/101 620/243 625/155 711/401 413 430 934 712/311 407 SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1 @PATH: 310/14 1 65 2480/56 2433/1200 225 270/101 712/624 711/934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.