Charles,

COBOL 5.1 has three settings for optimization OPT(0), OPT(1) and OPT(2).   
We're testing COBOL 5.1 at OPT(2), so, yes, we tested at the "full" 
optimization.  

Inside the paragraph that never gets executed, I added the following statement: 
MOVE "BUBBA" to WS-DESC.

After recompiling with OPT(2), I browsed the program object and was able to 
find "BUBBA" which leads me to believe that the optimizer is no longer removing 
code that cannot be executed.  (At least in this case.)  

Is that a bug?  I'll ask IBM and report back.   

Regards,
Greg Shirey
Ben E. Keith Company

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Charles Mills
Sent: Wednesday, October 01, 2014 4:33 PM
To: [email protected]
Subject: Re: Enterprise COBOL v5.1 Implemented?

That's weird, because that is one of the things that an *optimizing* compiler 
tends to notice: hey, I tried to optimize this, and when I did I optimized it 
right out of existence!

Have you tested with full optimization on?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to