I much prefer having eyecatchers show up in save area tracebacks, even if that 
"wastes" space.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Assembler List [[email protected]] on behalf 
of Martin Trübner [[email protected]]
Sent: Saturday, April 2, 2022 12:55 PM
To: [email protected]
Subject: Re: Eliminating Base Registers (was: Inlining routines)

Charles (et al),


I like the entry being at the CSECT and the base pointing to the entry
of the CSECT (and I am lazy) so I borrowed  a neat technique from Ed Jaffe


I marked it with "<--- this is new " in your sample


It costs only 4bytes and helps me.


TEST     CSECT
MAIN1    LOCTR
          J     MYENTRY     <--------- this is new
M1       DC    'Eyecatcher at front of CSECT'
MAIN2    LOCTR
          DS    H    alignment
MYENTRY  EQU   *
          ENTRY MYENTRY    <--------- this is superfloush now
          SAVE  ...
          LARL  R12,TEST   no more BALRs!
          USING TEST,R12
          code ...

MAIN1    LOCTR
* put any macros that need a base in little subroutines here
          LTORG
          Small constants and, if CSECT not relocatable, work areas

MAIN2    LOCTR
          Any large buffers or tables
          END


Martin

Reply via email to