At 16:33 -0800 2000/01/26, Mark P Jones wrote:
>When consGC is on, Hugs looks on (what it hopes is) the C stack for
>roots into the heap.

There is a strange parameter stack bug experienced with the MacOS port of
Hugs: When used with the Metrowerks CodeWarrior Pro C/C++ compiler, an
otherwise normal OS command to fix the stack size causes Hugs to overflow
the first few function calls, no matter how large this stack is set.

This problem was not experienced with the (now defunct) Symantec C
compiler. The version that Pablo originally maintained bypassed this stack
fixing command by the use of a package, DropUNIX, which didn't use it, so
it ran correctly.

Eventually I was able to locate the problem, and instead implement the
ability to adjust the stack size dynamically. So for now, it is a non-issue
in the sense that the MacOS port works as it should.

But it is worrysome not knowing what is causing this problem -- the CW
compiler, the Hugs port or what. Metrowerks could not help.

So the question is:

Is Hugs doing something strange with the parameter stack that the C
compiler provides (and which is the stack that the OS provides)?

  Hans Aberg


Reply via email to