Message-ID: <33525C21.B64@NO.SPAM.cs.com> Date: Mon, 14 Apr 1997 09:32:33 -0700 From: "John M. Aldrich" Organization: Two pounds of chaos and a pinch of salt MIME-Version: 1.0 To: Oberhumer Markus CC: "Charles W. Sandmann" , djgpp-workers Subject: Re: stackavail() ? References: <199704142208 DOT SAA19546 AT delorie DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Oberhumer Markus wrote: > > Thanks for your feedback. After investigating src/libc/crt0/crt0.s I've > come to the following solution which works fine on my machine. > > It looks pretty simple, though, so is there something I might have missed ? [snip code] The whole reason I was unsure about the stackavail() solution was that I didn't see an easy way to find the base address of the stack. This code seems to work for me, even when I've manually edited the stack size with stubedit. It also runs correctly under gdb. I guess somebody did something right for once. ;) Could this be a candidate for inclusion in the next djgpp library update? P.S.: Sorry about the hacked email address, but I found myself getting some nasty emailbombs recently. Twice, I got over 100 null emails, and there also seems to some new way of creating an email message that crashes Netscape when I try to read it. Has anyone else fallen victim to this? -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | Proud owner of what might one | http://www.cs.com/fighteer | | day be a spectacular MUD... | Plan: To make Bill Gates suffer | ---------------------------------------------------------------------