View previous topic :: View next topic |
Author |
Message |
jim haire Beginner
Joined: 30 Dec 2002 Posts: 140 Topics: 40
|
Posted: Thu Jan 28, 2016 9:34 am Post subject: COBOL Version 5 - Optimize(FULL) |
|
|
Our shop is going to be moving to COBOL version 5 in the near future. There has been some initial research done testing some of the new features, but the major concern is what the CPU Impact will be during execution.
2 questions:
a. What has your experience been when your shop has moved to
COBOL version 5 in regards to CPU times when executing a program?
b. Do you use the OPTIMIZE(FULL) parm for compiling and if you do
have you seen any CPU performance reduction from that? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12373 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
William Collins Supermod
Joined: 03 Jun 2012 Posts: 437 Topics: 0
|
Posted: Thu Jan 28, 2016 10:59 am Post subject: |
|
|
Up to V4, the only difference between OPT(STD) and OPT(FULL) is that FULL checks for unreferenced data-items (individual 01-levels, group 01-levels and 77-levels) and excludes them from the the generation of storage.
V5 has three levels of optimisation, 0, 1 and 2. That is correct, even level 0 does some straightforward optimisation, there is no way of getting a program with no optimisation at all using V5.
The higher the optimisation level you use, the longer a compile can take, and the more the generated code should benefit from a reduction in CPU usage.
The redundant storage removal is now done by a separate compiler option.
Optimised programs may tend to be somewhat larger. You should see performance improvements, but of what scale depends on your systems, not on anyone else's.
If going to V5, go to V5.2. There are several new options and features, and more in V5.2 than in V5.1. Make sure all fixes are applied.
Migrating to V5 is a much larger task than, say, from V3 to V4. The entire code-generation and optimisation are new.
V5 will use z/Architecture instructions (from ARCH level 7 through to 11, which latter is the z13). V4 only generates for ESA. |
|
Back to top |
|
|
jim haire Beginner
Joined: 30 Dec 2002 Posts: 140 Topics: 40
|
Posted: Thu Jan 28, 2016 12:37 pm Post subject: |
|
|
Thanks Kolusu and William for your responses. Good information!
We'll experiment with these. |
|
Back to top |
|
|
|
|