memory wordset

description

-- The Optional Memory Allocation Word Set

Copyright (C) Tektronix, Inc. 1998 - 2001. All rights reserved.

description: The optional memory allocation wordset interfaces to the surrounding OS heap memory management.

FORTH
ALLOCATE ( size -- ptr|0 code )(); 
 ;

allocate a chunk of memory from the system heap. use FREE to release the memory area back to the system. <br> a code of zero means success.

dpANS 14.6.1.0707 - standard forth word

FORTH

FREE ( ptr -- code )();
p4:"free";

free the memory from ALLOCATE a code of zero means success.

dpANS 14.6.1.1605 - standard forth word

FORTH
RESIZE ( ptr newsize -- ptr' code )(); 
 ;

resize the system memory chunk. a code of zero means success.

dpANS 14.6.1.2145 - standard forth word

ENVIRONMENT
MEMORY-ALLOC-EXT ( .. )(); 
 ;
( 1994  )  constant MEMORY-ALLOC-EXT

an ordinary constant (no special usage info)