some brief comments:
plus IBM macros have to be converted, there should be a macro to do that

On 2022-04-01 2:41 p.m., Dave Clark wrote:
"IBM Mainframe Assembler List"<[email protected]>  wrote on
04/01/2022 02:14:38 PM:
Where I disagree is on the base register issue. Base registers and
code addressability issues should have gone away. It is pretty
trivial to replace old branches with their newer relative
counterparts. Should be faster code, too, FWIW.

         OK, I'll bite.  This discussion has probably been done before but
I wasn't around for that.  Forgive my newbie questions -- even though I
have been programming in assembler on and off since 1978.  That said...

         I understand relative branching on a basic level.  But I haven't
really looked into them and haven't used them at all to this point.  So...

1. Is it as simple as just using a different mnemonic for the branch?
Yes
2. Does the target label still have to be within 4K for the relative
branch?
No
3. ...or is there an extended relative branch that uses the extended
displacement feature?
The default is extended
4. What about the target for the EXecute instruction?  Is there a relative
version of this?
EXRL
5. Even if code base register(s) is(are) eliminated, you still need a data
base register -- yes?
Reentrant, of course; there are some relative data reference commands
6. If you have a large program with constant data at the end of the
program, how do you establish the base register needed for that data area?
LARL will get the address
7. Lastly, if the code base register has been eliminated, does this mean
you should no longer have things like LTORG at the end of each subroutine
to force data to be stored near the subroutine that uses it (where
previously the code base register for the subroutine would have served
double-duty as the data base register)?
Yes but more immediate instructions may mean less need for literals


Sincerely,

Dave Clark

Gary Weinhold
Senior Application Architect
DATAKINETICS | Data Performance & Optimization
Phone:+1.613.523.5500 x216
Email: [email protected]
Visit us online at www.DKL.com
E-mail Notification: The information contained in this email and any 
attachments is confidential and may be subject to copyright or other 
intellectual property protection. If you are not the intended recipient, you 
are not authorized to use or disclose this information, and we request that you 
notify us by reply mail or telephone and delete the original message from your 
mail system.

Reply via email to