On 1/10/2012 1:41 PM, Gord Tomlin wrote:
What we do for this is use multiple location counters and code in our
prolog/epilog macros to automatically set up a base register for the
part of the CSECT containing the constants. The using range of the base
register is automatically defined to cover only the constants so that no
code inadvertently uses base/displacement branching. The code referring
to constants "just works".

Same here. Only a very small 'nit' program could get away without needing a base
register to 'cover' its constants.

--
Edward E Jaffe
Phoenix Software International, Inc
831 Parkview Drive North
El Segundo, CA 90245
310-338-0400 x318
[email protected]
http://www.phoenixsoftware.com/

Reply via email to