Memory allocation

The shell file bp specifies the sizes (number of words) for the data areas. Initially, the following values are given:
      set PAREA=2000000
      set STACK=2000000
      set TRAIL=1000000
      set TABLE=20000
PAREA is the size for the program area, STACK is the total size for the control stack and the heap, TRAIL is the size for the trail stack, and TABLE is the size for the table area. Users can freely update these values. Users can check the current memory consumption by using statistics/0 or statistics/2.

Users can modify the shell script file to increase or decrease the amounts. Users can also specify the amount of space that is allocated to a stack when starting the system. For example,

       bp -s 4000000
allocates 4M words, i.e., 16M bytes, to the control stack. Users can use the parameter -b to specify the amount that is allocated to the trail stack, -p to specify the amount that is allocated to the program area, and -t to specify the amount that is allocated to the table area. The stacks and data areas expand automatically.

Neng-Fa Zhou 2013-01-25