Article View: comp.sys.amiga.tech
Article #4217Re: stack setting?
From: Randell Jesup
Date: Thu, 05 Jul 1990 05:10
Date: Thu, 05 Jul 1990 05:10
18 lines
1284 bytes
1284 bytes
In article <13580002@hpspdra.HP.COM> ric@hpspdra.HP.COM (Ric Peregrino) writes:
>I have ported a wave editor program to the amiga and found that the
>default stack of 4000 is too small. I tried using a system call in
>the program to automatically set the stack, but it seems to fail.
>Anybody know why this is, or how it can be done?
Simple. Calls to system() (or Execute()) cause a program to be
run on another process. So they set the stacksize for that other process,
not yours.
Changing your own stack is a bit more complicated. It's pretty easy
in assembler, but in C you have to be more careful, especially with
exit() and stack-checking.
--
Randell Jesup, Keeper of AmigaDos, Commodore Engineering.
{uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup
Common phrase heard at Amiga Devcon '89: "It's in there!"
Technical Details
Message-ID:
<13047@cbmvax.commodore.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!uunet!cbmvax!jesupReferences:
<13580002@hpspdra.HP.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!uunet!cbmvax!jesup From: jesup@cbmvax.commodore.com (Randell Jesup) Newsgroups: comp.sys.amiga.tech Subject: Re: stack setting? Message-ID: <13047@cbmvax.commodore.com> Date: 5 Jul 90 05:10:57 GMT References: <13580002@hpspdra.HP.COM> Reply-To: jesup@cbmvax (Randell Jesup) Organization: Commodore, West Chester, PA Lines: 18