— Set a boot option.
An integer from Table 8.1.
A cl_index value for this option.
This functions sets the value of different options that have to be customized before ECL boots. The table of options and default values [Table 8.1] shows that some of them are boolean, and some of them are unsigned integers.
We distinguish three sets of values. The first set determines whether ECL handles certain exceptions, such as access to forbidden regions of memory, interrupts via , floating point exceptions, etc.
The second set is related to the sizes of different stacks. Currently ECL uses four stacks: a bind stack for keeping assignments to special variables; a frame stack for implementing blocks, tagbodys and catch points; an interpreter stack for evaluating bytecodes, and finally the machine or C stack, of the computer we run in. We can set the expected size of these stacks, together with the size of a safety area which, if penetrated, will lead to the generation of a correctable error.
Table 8.1. Boot options for embedded ECL
|boolean||Activate generational garbage collector.|
|boolean||Capture SIGSEGV signals.|
|boolean||Capture floating point exceptions.|
|boolean||Capture user interrupts.|
|boolean||Capture SIGILL exception.|
|boolean||Capture the signal that implements
|boolean||Create a signal to capture and process asynchronous threads (See Section 7.3.1).|
|boolean||Has ECL booted (read only).|
|cl_index||Size of stack for binding special variables.|
|cl_index||Size of stack for nonlocal jumps.|
|cl_index||Size of interpreter stack.|
|cl_index||Size of C stack (not exact).|
|cl_index||If nonzero, run C signal handler in an alternative signal. A small value is automatically incremented.|
|unsigned int||If nonzero, specify the unix signal which is used to communicate different Lisp threads.|