Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!seismo!mcvax!diku!sun_d!jnp From: jnp@sun_d.UUCP (J|rgen N|rgaard) Newsgroups: net.micro.mac,net.sources.mac Subject: A question concerning the memory maneger . Message-ID: <299@sun_d.UUCP> Date: Tue, 13-May-86 12:27:41 EDT Article-I.D.: sun_d.299 Posted: Tue May 13 12:27:41 1986 Date-Received: Thu, 15-May-86 06:47:48 EDT Reply-To: jnp@daimi.UUCP () Organization: DAIMI: Dept. of Comp. Sc., Univ. of Aarhus, Denmark Lines: 45 Xref: linus net.micro.mac:5884 net.sources.mac:1078 Hello, does some body know how to turn off the "stack-sniffer" ? This device makes it quite complicated/impossible to allocate heap for temporary stacks in a quasi-parallel system. One way to solve the problem could be (if the programming environment permits it, -- or is well enough documented (real programmers doesn't do etc.)) to create an artificial heap at the stack bottom (or top, depends on your view) and use this new "heap" for the temporaries of the quasi-parallel routines : Stack: _________ | | <- return to finder or what ever --------- | | . . <- artificial heap for coroutines | | --------- | | <- return to clean-up or something --------- | | . . <- usual stack | | --------- _________ | | <- usual heap | V But it would be niecer to be able to allocate directly from the heap, especially if you have a unpredictable number of coroutines. Besides programming it would be niecer !!! Thanks in advance J|rgen N|rgaard e-mail: ....{seismo!}mcvax!diku!daimi!jnp