Option |
Default |
-static-checking |
yes |
Enables instrumentation for array bounds checking of static data. In the default mode, -static-checking=yes, Purify looks first in the .purify directive files for static-checking directives for a given object file, then it checks the command-line options. If Purify does not find any static checking options, it defaults to instrumenting in safe mode with a guard zone of 16 bytes. If you specify -static-checking=no, static checking is completely disabled, regardless of whether you specify Purify directives for a given object file.
|
-static-checking-guardzone |
16 |
Sets the size of the guard zone inserted between variables in the data section. The default value is 16 bytes; however, for arrays of large structures, this value can be too small to catch a reference beyond the last element. To set the guard zone for specific files, add the following directive to a .purify file: static_checking_guardzone <integer value> <filename> You can include wildcard characters in <filename>. For example: program*.o matches /dira/dirb/program.o, /dira/dirb/program1.o, and program4.o. For an illustration of how you can use .purify files for directives (suppression directives in this case), click . Note:
|
For information about how Purify checks static memory, click