> -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On > Behalf Of Paul Gilmartin > Sent: Saturday, November 18, 2006 8:35 PM > To: [email protected] > Subject: Re: assembler question (strong typing) > /snip/ > I pretty much agree, though I'm somewhat uncomfortable with further > overloading USING. It's bursting at the seams with labelled and > dependent USINGs. And how would this work with the new-fangled > baseless code, particularly in the case discussed recently where > code from two different sources is merged with an editor or with > COPY?
/snip/ > -- gil I had a subroutine with ranged USING to prevent based references beyond the bounds of the subroutine. I converted the subroutine from based branch to relative branch. Then I copy-pasted the subroutine to another location in the same CSECT, and manually changed the branch target labels. The new subroutine also had a ranged USING. Everything assembled RC=0. Upon perusal of the assembly listing, I noticed that some of the relative branches in the new subroutine were referring to labels in the old subroutine outside of the ranged USING. The relative branches were ignored by the ranged USING, because there were no base registers to test in the relative branch instructions. Rather than try to dig around in the assembler documentation to find a way to generate a warning/error message for this situation, I just converted the routines back to RX-type branches. Problem solved. I doubt there is any significantly measurable difference in the performance between RX-type and relative branch instructions. Jeffrey D. Smith Principal Product Architect Farsight Systems Corporation 700 KEN PRATT BLVD. #204-159 LONGMONT, CO 80501-6452 303-774-9381 direct 303-484-6170 FAX http://www.farsight-systems.com/ comments are invited on my encryption project ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

