Article View: comp.os.os2.programmer
Article #284Strange trap in IBM C Set/2
From: Andreas Kaiser
Date: Thu, 06 Aug 1992 00:41
Date: Thu, 06 Aug 1992 00:41
19 lines
1223 bytes
1223 bytes
In article <19920804.113915.320@almaden.ibm.com> ameline@vnet.ibm.com writes: > Almost certainly insufficient stack space. Local variables reside on > the stack, and the default is quite a bit smaller than 32K. Use > /St:42000 on the link command line, and the program should work. Why did IBM implement a fixed stack size in IBM C? Since OS/2 2.0 provides a paged memory management, there should be no reason not to let the stack grow automatically. EMX does it this way. There is just one single disadvantage: to notice an endless recursion, you have to listen to the sound of your disk drive. But you don't have to count stack bytes. Gruss, Andreas :::::::::::::::::::: subnet: ak@ananke.stgt.sub.org :: Andreas Kaiser :: fidonet: 2:241/7220.9 ::::::::::::::::::::
Technical Details
Message-ID:
<713061696snx@ananke.stgt.sub.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!ira.uka.de!news.belwue.de!news.uni-stuttgart.de!delos!ananke!akReferences:
<19920804.113915.320@almaden.ibm.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!ira.uka.de!news.belwue.de!news.uni-stuttgart.de!delos!ananke!ak From: ak@ananke.stgt.sub.org (Andreas Kaiser) Newsgroups: comp.os.os2.programmer Subject: Strange trap in IBM C Set/2 Distribution: world Message-ID: <713061696snx@ananke.stgt.sub.org> References: <19920804.113915.320@almaden.ibm.com> Date: Thu, 06 Aug 92 00:41:36 GMT Organization: ananke Lines: 19