How would you handl calls to sepaerately compiled subroutines without RLD? How would you write PIC that called external subroutines?
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [[email protected]] on behalf of Paul Gilmartin [[email protected]] Sent: Monday, August 23, 2021 5:29 AM To: [email protected] Subject: Re: Load Library Module Length and Load Macro Module Length different Values On Sun, 22 Aug 2021 17:04:20 -0700, Charles Mills wrote: >Not what you asked, but can one MVCL a load module from one address to >another and rely on its executing correctly? What about relocatable address >constants? (Less necessary today than once upon a time due to LARL, but >still lots of them around.) Of course in some case one might know that the >load module in question was a table e.g. that had no RLDs. > https://secure-web.cisco.com/1mX3-5aTixR5J_GEfLu3CF6JSXalM3xCEbyqLSTLHK6L47JbhkEvgo-_pxAuRpdS9-cUbdEqADk1Alcme5euyqGCq6Kj0YnEI6v8-h13y4WnLt5ySfo886u3Y4mWib7wzY9T8c9tvwhHpN-OElSDqDM4XPSEapnUcQhcDyKuFDVKOMPG-bYRox__LnmkWNe4gtsLts5_eRGHoFktwE-sG6KNlQX9-SWxBP0J0AJmK8iaPzVwOsmiMNDGPapjs8ZQzsvZ4yZ5sooqg-giHg0So9Y-nqK5BdY2iBji-UubUiQxrLQFs6CDArXXX1-LbIsmls9URXMe8gfDq8kTLjfz9N5-iPh89D0wuiiYavTbxBwiEuS543WaEJEpwQt1fBksiTgZcod41slPfIEX9jM6I6KGw8t8uI7PU0gd-F_Z3TTg_rfY0OFP0dH2_8TCZ_yed/https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FPosition-independent_code I was once modifying a Pascal compiler to generate code to run embedded, on bare metal on 370-like processor. I added the capability to generate position-independent_code (PIC). I generated all pointers self-relative, used by the sequence: USING *,R15 ... LA Rx,POINTER AL Rx,POINTER Pascal has the limitation, useful in this case, of having no syntax to statically initialize pointers in data areas. The MVCL test worked. For other reasons the product never made GA. I believed the 360 base-displacement hardware design facilitated PIC, making RLDs unnecessary; OS designers ignored the capability. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
