Re: LE calling assembler with 64 bit register usage

2010-07-26 Thread Jan MOEYERSONS
On Fri, 23 Jul 2010 00:17:17 -0400, Phil Smith III li...@akphs.com wrote: We have a largish batch LE C application that runs in POSIX mode. For performance optimization, we're rewriting a couple of routines in assembler. Have you measured the performance boost the OPTIMIZE compiler option

Re: LE calling assembler with 64 bit register usage

2010-07-26 Thread Phil Smith III
Jan MOEYERSONS wrote: Have you measured the performance boost the OPTIMIZE compiler option brings you? Is it still worth it trying to do better in assembler? No such option in the compiler we're using, and the operations are large multi-precision arithmetic. All the code we've seen generated

Re: LE calling assembler with 64 bit register usage

2010-07-26 Thread Adam Johanson
David Crayford wrote: Absolutely no need to use CEEENTRY or any LE macros in your assembler code unless you want to call LE services. It's not a requirement, and a lot of programs would work without using CEEENTRY, but it's worth noting that we had a program that did its own roll- your-own

Re: LE calling assembler with 64 bit register usage

2010-07-25 Thread Peter Relson
Is it guaranteed by LE that the services potentilly invoked by CEEENTRY will not violate those conventions? I.E., initial stack frame allocation, extend stack frame, etc.? Otherwise saving/restoring outside of the prolog/epilog would vio I'm sure that whatever LE calls does not violate

Re: LE calling assembler with 64 bit register usage

2010-07-24 Thread Peter Relson
As an assembler routine (especially one that is not utilizing LE services), you have the responsibility to maintain standard register saving conventions (unless your caller expects otherwise): making sure that the return to the caller is with - low halves of GPRs 2-13 unchanged - high halves of

Re: LE calling assembler with 64 bit register usage

2010-07-24 Thread Farley, Peter x23353
-Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Peter Relson Sent: Saturday, July 24, 2010 9:13 AM To: IBM-MAIN@bama.ua.edu Subject: Re: LE calling assembler with 64 bit register usage As an assembler routine (especially one

Re: LE calling assembler with 64 bit register usage

2010-07-23 Thread David Crayford
Phil Smith III wrote: We have a largish batch LE C application that runs in POSIX mode. For performance optimization, we're rewriting a couple of routines in assembler. So far so good. Here's the kicker: the application is 31-bit, but needs to use 64-bit registers (for large integer math).

Re: LE calling assembler with 64 bit register usage

2010-07-23 Thread Steve Comstock
Phil Smith III wrote: We have a largish batch LE C application that runs in POSIX mode. For performance optimization, we're rewriting a couple of routines in assembler. So far so good. Here's the kicker: the application is 31-bit, but needs to use 64-bit registers (for large integer math).

Re: LE calling assembler with 64 bit register usage

2010-07-23 Thread Phil Smith III
Steve Comstock wrote: You don't need LE to use 64-bit integer arithmetic. Just use standard linkage conventions between C and Assembler. You can run in 31-bit mode and use 64-bit arithmetic no problem. OK, but the LE conventions for saving/restoring the 64-bit registers must be followed (it

LE calling assembler with 64 bit register usage

2010-07-22 Thread Phil Smith III
We have a largish batch LE C application that runs in POSIX mode. For performance optimization, we're rewriting a couple of routines in assembler. So far so good. Here's the kicker: the application is 31-bit, but needs to use 64-bit registers (for large integer math). We're having a devil of a

Re: LE calling assembler with 64 bit register usage

2010-07-22 Thread Bob Woodside
On Friday 23 July 2010 00:17, Phil Smith III wrote: Do not anger the LE, for its wrath is not pretty! I think that's Do not meddle in the affairs of the LE, for it is subtle and quick to anger. Cheers, Bob -- Bob Woodside Woodsway Consulting, Inc. http://www.woodsway.com