Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Optimizing your code

When your program is ready for final testing, specify the OPTIMIZE compiler option so that the tested code and the production code are identical.

You might also want to use this compiler option during development if a program is used frequently without recompilation. However, the overhead for OPTIMIZE might outweigh its benefits if you recompile frequently, unless you are using the assembler language expansion (LIST compiler option) to fine-tune the program.

For unit-testing a program, you will probably find it easier to debug code that has not been optimized.

To see how the optimizer works on a program, compile it with and without the OPTIMIZE option and compare the generated code. (Use the LIST compiler option to request the assembler listing of the generated code.)

related concepts  
Optimization

related references  
LIST  
OPTIMIZE


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)