Fw: Does Ent. COBOL 4.1 generate 64-bit binary arithmetic instructions?

2009-10-08 Thread Bill Klein
I am a COBOL person not an Assembler person.  Don't the grande
instructions require a specific architecture level set?  If so, that might
be why (as others in the thread have indicated), COBOL does NOT do what you
are asking about.  

It would seem a reasonable SHARE requirement for something like
 - when using *ALL* COMP-5 sending and receiving fields, (and possibly also
when using all binary fields with TRUNC(OPT)) then binary, not
packed-decimal arithmetic should be used.  When such arithmetic is using
large binary fields, then grande instructions should be used.

This assumes, however, that this would actually provide a demonstrable
advantage to IBM COBOL customers.

Farley, Peter x23353 peter.far...@broadridge.com wrote in message
news:053f2631ec9c584883847c8b4970a228050da...@josqems1.jsq.bsg.ad.adp.com.
..
 I did not see anything about it in the updates page in the language
 reference nor the programmer's guide, but I'm wondering if anyone here
 knows if the newest release of the Enterprise COBOL compiler will
 generate grande arithmetic instructions for COBOL binary fields (e.g.
 will it generate an AG or AGR instruction for adding two PIC S9(18)
 BINARY fields?).
 
 TIA for any info you can provide.
 
 Peter
 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Fw: Does Ent. COBOL 4.1 generate 64-bit binary arithmetic instructions?

2009-10-08 Thread P S
On Thu, Oct 8, 2009 at 6:29 PM, Bill Klein wmkl...@ix.netcom.com wrote:
 I am a COBOL person not an Assembler person.  Don't the grande
 instructions require a specific architecture level set?  If so, that might
 be why (as others in the thread have indicated), COBOL does NOT do what you
 are asking about.

Yes, but it's not exactly a late-breaking ALS -- like, circa 2000.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Fw: Does Ent. COBOL 4.1 generate 64-bit binary arithmetic instructions?

2009-10-08 Thread Clark Morris
On 8 Oct 2009 15:32:09 -0700, in bit.listserv.ibm-main you wrote:

I am a COBOL person not an Assembler person.  Don't the grande
instructions require a specific architecture level set?  If so, that might
be why (as others in the thread have indicated), COBOL does NOT do what you
are asking about.  

Since Enterprise COBOL requires z/OS 1.9, it requires the grande ALS.

It would seem a reasonable SHARE requirement for something like
 - when using *ALL* COMP-5 sending and receiving fields, (and possibly also
when using all binary fields with TRUNC(OPT)) then binary, not
packed-decimal arithmetic should be used.  When such arithmetic is using
large binary fields, then grande instructions should be used.

This assumes, however, that this would actually provide a demonstrable
advantage to IBM COBOL customers.

The grande instruction set usage can be useful for even S(9) BINARY
since it would be a simpler way to handle overflow with multiple
operands.  

Farley, Peter x23353 peter.far...@broadridge.com wrote in message
news:053f2631ec9c584883847c8b4970a228050da...@josqems1.jsq.bsg.ad.adp.com.
..
 I did not see anything about it in the updates page in the language
 reference nor the programmer's guide, but I'm wondering if anyone here
 knows if the newest release of the Enterprise COBOL compiler will
 generate grande arithmetic instructions for COBOL binary fields (e.g.
 will it generate an AG or AGR instruction for adding two PIC S9(18)
 BINARY fields?).
 
 TIA for any info you can provide.
 
 Peter
 


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html