Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #25397

Re: Relocatable Blocks

From Paul Rubin <no.email@nospam.invalid>
Newsgroups comp.lang.forth
Subject Re: Relocatable Blocks
Date 2013-08-25 14:04 -0700
Organization Nightsong/Fort GNOX
Message-ID <7xioytzdll.fsf@ruckus.brouhaha.com> (permalink)
References <CE4017C0.3A79%igvb@btopenworld.com>

Show all headers | View raw


Ian van Breda <igvb@btopenworld.com> writes:
> I suggest that the equivalent definitions for ALLOCATE, FREE and RESIZE be
> defined in the standard...
> NEW-HANDLE ( u -- hndl ior)..
> FREE-HANDLE ( hndl -- ior)..
> RESIZE-HANDLE ( hndl u -- ior)..

There doesn't seem to be a way specified to access data in a relocatable
block--are you saying the application should just treat hndl as
something like an indirect pointer that can change at any time?  How is
that supposed to interact with multitasking?

Do you really need dynamic resizing for Forth stacks?  I thought very
deep stacks weren't really in the Forth spirit.  In any case, since only
the top few stack elements are directly accessible, resize can be done
completely behind the scenes, by moving the deeper elements off to some
other place in memory, keeping the top elements at fixed addresses.

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Relocatable Blocks Ian van Breda <igvb@btopenworld.com> - 2013-08-25 20:21 +0100
  Re: Relocatable Blocks Paul Rubin <no.email@nospam.invalid> - 2013-08-25 14:04 -0700
    Re: Relocatable Blocks Ian van Breda <igvb@btopenworld.com> - 2013-08-29 19:55 +0100
  Re: Relocatable Blocks albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-08-26 11:34 +0000
    Re: Relocatable Blocks Hans Bezemer <the.beez.speaks@gmail.com> - 2013-08-26 14:58 +0200
      Re: Relocatable Blocks Hans Bezemer <the.beez.speaks@gmail.com> - 2013-08-26 15:30 +0200
      Re: Relocatable Blocks anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-08-26 14:33 +0000
        Re: Relocatable Blocks Ian van Breda <igvb@btopenworld.com> - 2013-08-29 20:22 +0100
  Re: Relocatable Blocks Mark Wills <markrobertwills@yahoo.co.uk> - 2013-08-26 07:08 -0700

csiph-web