🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #2650

Help with Execute()

#2650
From: Martin Warnett
Date: Sun, 10 Dec 1989 17:36
28 lines
1720 bytes
The question concerns Execute() and stack size. I wrote a test program
to execute the command "STACK >RAM:TEST" so that I could check the stack
size the executed program got as I was having some weird problems. Sure
enough the stack size was the problem.

When I ran the program from the CLI the RAM:TEST file told me the stack
size was whatever I set the stack size to using the stack command. This
was as expected. However when I ran the program from the WB the stack
size was 4000 regardless of the STACK specification in the .info file.
I had expected the program to get whatever that stack size was set to.

Question: Is there any way I can set the stack size for the executed
program from within my program? The only work around I came up with was
setting the stack size in my startup sequence. This had the effect of
the program getting this stack size even when run from the WB. But this
has the side effect of wasting a lot of memory.

Any assistance would be greatly appreciated.

Thanks,


Martin.
-- 
+====================================================================+
| Martin Warnett          | uucp:   ...sun!claris!wet!mcw            |
| San Francisco, CA       |         claris!wet!mcw@ames.arc.nasa.gov |
+====================================================================+
Technical Details
Message-ID: <855@wet.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!ucsfcgl!cca.ucsf.edu!wet!mcw

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!ucsfcgl!cca.ucsf.edu!wet!mcw
From: mcw@wet.UUCP (Martin Warnett)
Newsgroups: comp.sys.amiga.tech
Subject: Help with Execute()
Message-ID: <855@wet.UUCP>
Date: 10 Dec 89 17:36:38 GMT
Reply-To: mcw@wet.UUCP (Martin Warnett)
Organization: Wetware Diversions, San Francisco
Lines: 28