How can I deal with stack overflows?

Although the system automatically expands the stack before it overflows, there are certain cases in which the stack does overflow (e.g., too many agents are activated at a time). You can specify the amount of space allocated to a stack when you start the system. For example,
       bp -s 4000000
allocates 4 mega words, i.e., 16 mega 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. See 10.1 for the details.



Neng-Fa Zhou 2012-01-03