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
The 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. You can freely update these values. You can check the current memory consumption by using statistics/0 or statistics/2.

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

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



Neng-Fa Zhou 2012-01-03