Path: utzoo!attcan!uunet!munnari.oz.au!murdu!ucsvc!wehi!baxter_a From: BAXTER_A@wehi.dn.mu.oz Newsgroups: comp.sys.amiga.tech Subject: Re: stack setting? Message-ID: <9779@wehi.dn.mu.oz> Date: 6 Jul 90 19:43:11 GMT References: <13580002@hpspdra.HP.COM> <13009@cbmvax.commodore.com> Organization: Walter & Eliza Hall Institute Lines: 31 In article <13009@cbmvax.commodore.com>, kevin@cbmvax.commodore.com (Kevin Klop) writes: > 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? >> >>#include >>#include >> >>void main(void) { >> >>printf("setting stack to 8192\n"); > start a new process and have it execute the following command. > > Thus, system("stack 8192"); means > > start a new process, change that process' stack size to 8192, then > exit that process. > > Note that this does NOT affect the stack size of the process ISSUING the > system() call. Note however that you CAN use the Lattice functio Execute like this: Execute("stack 8192\n programname"); (with the other arguments, which escape my mind at the moment) Regards Alan