This posting about the sign forcing Zero Add Packed instruction generated under some circumstances by COBOL compilers at least prior to the complete rewrite appeared on the comp.lang.cobol newsgroup. I remember being annoyed by the ZAP since I saw no harm in negative zero. Since a request for a compiler option is being filed, I thought this would be of interest here. Is such an option already available in the latest compiler?
Also as an aside, how does the code generated by the newest compiler compare with its predecessors? Clark Morris On Tue, 4 Feb 2014 15:10:19 -0800 (PST), in comp.lang.cobol [email protected] wrote: >This problem/issue has been discussed at length in other threads. ZAP is >generated to correct the sign if the result is -0 after overflow. We have >requested that IBM offer a compiler option to eliminate this ZAP since it is >causing performance issues in a large, packed-decimal arithmetic intensive job. > >I understand that these RFEs (Request for Evaluations) are voted on by the RFE >community so if you are an IBM developerWorks member, agree that this >performance enhancement would make sense in your environment then feel free to >vote. RFE ID 44362. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
