Gen Cobol 6.2 compiler options and STGOPT
search cancel

Gen Cobol 6.2 compiler options and STGOPT

book

Article ID: 227495

calendar_today

Updated On:

Products

Gen

Issue/Introduction

What are the recommended Gen 8.6 Cobol 6.2 compiler options?    And, does Broadcom Gen recommend the STGOPT option?

Environment

Release : 8.6

Component : Gen Host Encyclopedia

Resolution

These are the set of default Cobol 6.2 compile options that we set in Gen 8.6 member 'CEHBCLS0(TICCMPL)' as follows: 
 
 S,X,MAP,OFF,DATA(31),NOSEQ,OPT(2),RENT,DLL,APOST,NONUM,NOD,NODYN,OBJ,NOWD,NOSSRANGE,NUMPROC(NOPFD),NONAME

Regarding STGOPT Cobol compiler option:
IBM changed the behavior of the STGOPT compiler option in a COBOL v6.1 PTF and these changes are also in the v6.2 compiler.  We found that the STGOPT compiler option provided negligible performance benefits, so we chose to go with the NOSTGOPT compiler option for its debugging benefits.  We use the OPT(2) compiler option to improve performance of the generated code.
 
Here is the documentation from the COBOL v6.2 Migration Guide:
"NOSTGOPT: In earlier versions, data items can get optimized with OPT(2) even when NOSTGOPT was in effect. NOSTGOPT was changed in this version so that no optimization of storage or data items occurs even with OPT(2). This is especially helpful for WORKING-STORAGE eye-catchers."