Specifying Entry Tables

With the /Gp compiler option, you can specify the maximum number of entry tables for your program. Like the other options for fine-tuning p-code discussed in this section, the /Gp option must be used in conjunction with the /Oq option.

An entry table is needed for every segment that contains a p-code function or a function called by a p-code function. One entry table can describe up to 256 such functions. If a segment contains more than that, the Make P-Code utility (MPC) creates additional entry tables.

If you do not specify the /Gp option, n is assigned the default value of 255. In addition to the space that the actual entry tables take up, there is a four-byte overhead for each possible entry table.

Note:

The MPC utility is invoked automatically when you specify the /Oq option on the CL command line.

Specify /Gpn when you compile your source file. When the MPC utility processes the resulting .EXE file, it creates up to n entry tables. MPC returns an error if the program needs more than n entry tables.