Main Page | Report Page

 

  Computers Forum Index » Computer Languages (Forth) » A simple MEMORY wordset...

Author Message
Rod Pemberton...
Posted: Mon Jun 14, 2010 4:11 am
 
"Albert van der Horst" <albert at (no spam) spenarnc.xs4all.nl> wrote in message
news:l3z21u.ch4 at (no spam) spenarnc.xs4all.nl...
Quote:
Rationale

This MEMORY wordset has a simple pointer that just advances
through the heap, and allocates from there.

Isn't that just like HERE?

Quote:
It is never reset,

You mean like the "DP" address pointer used by HERE?

Quote:
and the first space that is large enough is returned.

Is that not just like ALLOT which uses HERE?


I admit my understanding of Forth may be lousy, but still, your rationale
has me asking: why? ... What'd I miss?


Rod Pemberton
 
Coos Haak...
Posted: Mon Jun 14, 2010 4:36 am
 
On Sun, 13 Jun 2010 20:11:13 -0400, Rod Pemberton wrote:

Quote:
I admit my understanding of Forth may be lousy, but still, your
rationale has me asking: why? ... What'd I miss?

Look up 'memory word set' in the Forth Standard.

Or, if you know C, malloc, realloc and free.

--
Coos

CHForth, 16 bit DOS applications
http://home.hccnet.nl/j.j.haak/forth.html
 
 
Page 1 of 1    
All times are GMT
The time now is Sat Jul 26, 2014 1:15 am