cobol2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
OPT Details (↑ Object Code)
 Key Summary                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The possible values of integer are:
 
      0  Intermediate code as produced by the first pass of the compiler.
         This is generally smaller than native code, but is slower for
         processor-bound operations. Programs compiled with OPT "0"
         cannot be linked with the static linked run time system, LCOBOL.
      1  Standard generated native code.
      2  This is optimized generated code. Optimization does not change
         the logic of your program, but there may be incidental effects
         because some statements may have no associated machine code and
         statement order is not preserved. For example, PERFORM n TIMES
         of an empty paragraph will cause no code to be generated, so
         this construct cannot be used to form a delay loop.
                                    -♦-