


-Za Causes the compiler to generate code to test array references at runtime. If an index is used which is out-of-bounds, the runtime system displays an error message showing the index value and the allowed bounds. (This causes some extra code to be generated and prevents certain table optimizations from occurring, so it should be turned off once a program is fully debugged.) With this option, the compiler does not re-use previously computed index values. Because subscript overflow is the most common cause of memory access violation errors, adding this option is a good first step when you are looking for the cause of a memory access violation. (See Chapter 6, section 6.4.1, "Memory Access Violations" for more details.)
This option also causes the runtime to test the LINKAGE items automatically. When an item defined in the Linkage Section is not referenced in the USING phrase of the Procedure Division statement, the runtime returns an error message.
-Zc This "compact" option causes ACUCOBOL-GT to optimize for smaller code instead of faster code.
-Zd Although still supported, this option has been replaced by the "-Gd" option. Both options produce the same results. ""
-Zg Enables the use of segmentation (overlays) in the source. If this option is not used, then section numbers will be ignored.
-Zi Causes the program to be compiled as if it had the "IS INITIAL PROGRAM" phrase specified in its PROGRAM-ID paragraph. This can be useful, in some cases, when you are compiling programs that do not contain adequate memory management (no CANCEL verbs, for example).
-Zl This option causes the compiler to allow data items larger than 64 KB. The program can be run only on machines that can address more than 64 KB at once. See the Reference Manual, section 5.1.6, "Large Data Handling." This is a default setting and is always on.
-Zn This turns off ACUCOBOL-GT's local optimizer. This is useful primarily to see if the optimizer is introducing errors in the generated object code. This option also prevents the compiler from re-using previously computed index values.
-Zo Although still supported, this option has been replaced by the "-Fo" option. Both options produce the same results.
-Zr Allows for recursive PERFORM statements. When this switch is used, the PERFORM verb is modified so that return addresses are stored on a stack. Only the most recent PERFORM statement has an active return address. When this option is used, a paragraph under the control of a PERFORM statement may (directly or indirectly) PERFORM itself. See the configuration option PERFORM-STACK.
This behavior is the default. For backward compatibility, "-Zr" acts like "-Zr1". If you compile for compatibility with Version 3.1 or earlier, recursive PERFORMs are turned off by default. This behavior may affect existing programs that do not compile for earlier compatibility. Event procedures require the ability to do recursive PERFORMs.
-Zr0 This option tells the compiler not to allow recursive PERFORMs. Event procedures require the ability to do recursive PERFORMs.
-Zr1 This option tells the compiler to allow recursive PERFORMs. Event procedures require the ability to do recursive PERFORMs.
-Zs Although still supported, this option has been replaced by the "-Gy" option. Both options produce the same results.
-Zt While still supported, this switch is obsolete because its effects are always performed by the compiler. This option makes certain table indexing operations faster. Generally, it improves performance for 32-bit binary indexes and for the indexing of multi-dimensional tables.
-Zw This option prepares a program for import into the Acucorp workbench's Screen Designer. It causes the compiler to decorate windows and screen controls with additional information that can be used by the screen import utility. Graphical windows imported into the Screen Designer will be more complete if the program was first compiled with this option. Using this option makes your compiled program somewhat larger, so you should use it only when you are importing screens into the workbench. (See "-import" option in section 2.2, Using the Runtime, further in this chapter, for related discussion.)
You can also use the "-Ml", "-Mm", and "-Mu" options to affect the case of the additional information. This will affect how these items are seen in the Screen Designer, and in your subsequently generated code. Specifying "-Zw -Ml" will cause the data imported into the Screen Designer to be in lowercase. The default is uppercase ("-Mu"). To specify uppercase for the first letter of each word, and lower case for the rest of each word, use "-Mm".
-Zx Although still supported, this option has been replaced by the "-Fx" option. Both options produce the same results.
-Zy This option lets you treat ACCEPT FROM DATE as ACCEPT FROM CENTURY-DATE, and ACCEPT FROM DAY as ACCEPT FROM CENTURY-DAY. If you use this option, then the 4-digit year format will be used for ACCEPT FROM DATE providing that:
If neither of the above conditions applies, then ACCEPT FROM DATE will return its normal 6-digit format even if you use "-Zy".
ACCEPT FROM DAY works in the same fashion, except that the receiving field must have seven or more digits/positions in order to receive the new format.
Information on ACCEPT FROM DATE and ACCEPT FROM DAY is located in the Reference Manual entry for ACCEPT, Format 3, in section 6.6.
-Zz This option causes spaces in a USAGE DISPLAY numeric item to be treated as the value zero. "-Zz" must be specified at compile time in order to prevent the optimizer from mis-constructing the program. Note that this option should be used only if you need it, because it causes less efficient programs to be produced.
-Z3 Causes ACUCOBOL-GT to produce programs that can be run by the Version 1.3 runtime system. Specifying this will limit several features of later versions. If you use a restricted feature, you will receive an error message at compile time. This flag also implies the "-C3" option to ensure compatible behavior of the compiled program (see above).
-Z4 Similar to the "-Z3" option, except that the produced object can be run by the Version 1.4 runtime system. Implies "-C4".
-Z5 Causes the compiler to produce object files that can be run by the Version 1.5 runtime system. This option implies "-C5".
-Z20 Creates object code that can be run with a Version 2.0 runtime (chart verbs are not supported). This option implies "-C20".
-Z21 Creates object code that can be run with a Version 2.1 runtime.
-Z22 Creates object code that can be run with a Version 2.2 runtime.
-Z23 Creates object code that can be run with a Version 2.3 runtime.
-Z24 Creates object code that can be run with a Version 2.4 runtime.
-Z30 Creates object code that can be run with a Version 3.0 runtime.
-Z31 Creates object code that can be run with a Version 3.1 runtime. When used in combination with the "-Fx" switch, this switch also causes the compiler to generate Version 3 XFD files.
-Z32 Creates object code that can be run with a Version 3.2 runtime. When used in combination with the "-Fx" switch, this switch also causes the compiler to generate Version 3 XFD files.
-Z40 Creates object code that can be run with a Version 4.0 runtime. When used in combination with the "-Fx" switch, this switch also causes the compiler to generate Version 3 XFD files.
-Z41 Creates object code that can be run with a Version 4.1 runtime.
-Z42 Creates object code that can be run with a Version 4.2 runtime.
-Z43 Creates object code that can be run with a Version 4.3 runtime.