Re: C stack

2000-12-15 Thread Jan Kort
Simon Marlow wrote: > > I don't forsee any problems with the C stack - the stack pointer stays > static during execution of Haskell code, and only moves when we do a C > call or return to the RTS. But how do I get the address of the bottom of the stack ? It seems I can define a C main so I can g

RE: C stack

2000-12-15 Thread Simon Marlow
> Hi, > > I'm trying to write an interface for a C library that > uses a Boehm type garbage collector. So, I need to get > the address of the bottom of the C stack. In a C > application this would look something like: > main() > { > int bottomOfStack; > } > Where "&bottomOfStack" would