Task

Show how to explicitly allocate and deallocate blocks of memory in your language.

Show access to different types of memory (i.e., heap, stack, shared, foreign) if applicable.




display total memory available
 
~~~
EOM n:put
~~~
 
display unused memory
 
~~~
EOM here - n:put
~~~
 
display next free address
 
~~~
here n:put
~~~
 
allocate 1000 cells
 
~~~
#1000 allot
~~~
 
free 500 cells
 
~~~
#-500 allot
~~~