NAME $1 - SYNOPSIS DESCRIPTION IMPLEMENTATION SEE ALSO ARGUMENTS MODIFIED CALLS BUGS initialize dynamic storage space subroutine dsinit (w) integer w 'Dsinit' initializes an area of storage in the common block CDSMEM so that the routines 'dsget' and 'dsfree' can be used for dynamic storage allocation. The memory to be managed must be supplied by the user, by a declaration of the form: DS_DECL (mem, MEMSIZE) which turns into something similar to integer mem (MEMSIZE) common /cdsmem/ mem The memory size must then be passed to 'dsinit' as its argument: call dsinit (MEMSIZE) 'Dsinit' sets up an available space list consisting of two blocks, the first empty and the second containing all remaining memory. The first word of memory (below the available space list) is set to the total size of memory; this information is used only by the dump routines 'dsdump' and 'dsdbiu'. error dsget (2), dsfree (2), dsdump (2), dsdbiu (2)