jnp@sun_d.UUCP (J|rgen N|rgaard) (05/13/86)
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
dwb@well.UUCP (David W. Berry) (05/15/86)
The stack sniffer can be disabled by: #define StkLowPt (*(char **) 0x110) StkLowPt = 0;