www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/04/14/22:35:50

Message-ID: <33525C21.B64@NO.SPAM.cs.com>
Date: Mon, 14 Apr 1997 09:32:33 -0700
From: "John M. Aldrich" <fighteer AT NO DOT SPAM DOT cs DOT com>
Organization: Two pounds of chaos and a pinch of salt
MIME-Version: 1.0
To: Oberhumer Markus <k3040e4 AT c210 DOT edvz DOT uni-linz DOT ac DOT at>
CC: "Charles W. Sandmann" <sandmann AT clio DOT rice DOT edu>,
djgpp-workers <djgpp-workers AT delorie DOT com>
Subject: Re: stackavail() ?
References: <199704142208 DOT SAA19546 AT delorie DOT com>

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 |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019