Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!uunet!nuchat!sugar!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.lang.forth Subject: Re: Dynamic Memory Allocation Message-ID: Date: 31 Aug 90 19:36:02 GMT References: <1648.UUL1.3#5129@willett.pgh.pa.us> Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 11 In article <1648.UUL1.3#5129@willett.pgh.pa.us> ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) writes: > If someone can tell how you add size to a hardware stack, I think the TC might > consider solving the problem. However even a soldering iron is not much help > on a chip with internal stacks. I suppose you could buffer the overflow, but > then you loose all the advantage of having a fast internal stack. When you overflow, copy out half the stack (however you like... if you can handle overflow at all you can do this just by pushing data on the stack). Now you won't overflow again for a while. When you underflow, pull in half the stack. There will still be some overhead for overflows, but depending on the stack size it can be made quite small. -- Peter da Silva. `-_-' +1 713 274 5180. 'U` peter@ferranti.com