Article View: comp.sys.amiga.tech
Article #4162stack setting?
From: Ric Peregrino
Date: Mon, 02 Jul 1990 17:14
Date: Mon, 02 Jul 1990 17:14
20 lines
879 bytes
879 bytes
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?
#include <stdio.h>
#include <stdlib.h>
void main(void) {
printf("setting stack to 8192\n");
system("stack 8192");
system("stack");
}
the second call to stack with no argument returns the current stack
size: 4000.
Thanks for any help,
ric@hpspd
Technical Details
Message-ID:
<13580002@hpspdra.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!ucbvax!hplabs!hpl-opus!hpspdra!ricShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!ucbvax!hplabs!hpl-opus!hpspdra!ric From: ric@hpspdra.HP.COM (Ric Peregrino) Newsgroups: comp.sys.amiga.tech Subject: stack setting? Message-ID: <13580002@hpspdra.HP.COM> Date: 2 Jul 90 17:14:25 GMT Organization: HP Stanford Park - Palo Alto, CA Lines: 20