Hi,
Starting with version V5 of Enterprise Cobol, is there an interest to use the OPTIMIZE(2) compilation option in the presence of the TEST compilation option, TEST(NOEJPD) or TEST(EJPD) ?
These two options seem contrary objectives. For example:
- OPTIMIZED(2) seeks to reorganize the binary code to make it more effective even if no longer meet bijective correspondence with the source statements, while TEST seeks to maintain at the level of the binary code bijective correspondence with the source statements.
- OPTIMIZED(2) stores results of repeated expressions for reuse in the binary code of fallowing source instructions (especially on calculations of indices of access to items of tables : MOVE x TO TABLE-ITEM1(I +1), MOVE y TO TABLE-ITEM2 (I + 1)... ), then that TEST(EJPD) produces a binary code where these repeated expressions are re-evaluated for each source statement.
What are the optimizations provided by the option OPTIMIZE(1|2) which are not cancelled by the option TEST(NOEJDP) or TEST(EJPD) ?
Is there a consolidated document on the really active optimizations in the presence of the different variants and combination of options OPTIMIZE and TEST ?
Thanks.
Denis FALLAI
DenisFALLAI