发明名称 Relocation of instructions that use relative addressing
摘要 Relocation of instructions that use relative addressing. Metadata relating to an instruction that uses relative addressing to access data and is to be relocated is stored prior to relocation. Based on relocating the instruction from one memory location to another memory location, a determination is made of an address to be used to access the data by the instruction. The determining is based on at least one of the metadata or an address of the another memory location. The instruction is executed at the another memory location, and the determined address is used to access the data.
申请公布号 US9329850(B2) 申请公布日期 2016.05.03
申请号 US201414313358 申请日期 2014.06.24
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Gschwind Michael K.;Salapura Valentina
分类号 G06F9/45;G06F9/445;G06F9/30 主分类号 G06F9/45
代理机构 Heslin Rothenberg Farley & Mesiti PC 代理人 Bennet, Esq. Steven L.;Hulihan, Esq. Matthew M.;Heslin Rothenberg Farley & Mesiti PC
主权项 1. A method of facilitating processing within a computing environment, said method comprising: storing, by a processor of the computing environment, metadata relating to an instruction of the computing environment to be relocated from one memory location to another memory location, the instruction using program counter (PC)-relative addressing to access data and the instruction included in code that is dynamically optimized resulting in relocating the instruction to provide a relocated instruction; based on relocating the instruction, determining an address to be used to access the data by the relocated instruction, the determining being based on at least one of the metadata or an address of the another memory location, wherein the determining the address to be used to access the data comprises: accessing a register that is included in the code prior to optimizing the code to obtain a register address from the register, the register being a fixed number of instructions before or after the instruction, and the register address comprising an address of the one memory location;determining an offset to be used by the relocated instruction to access the data; andusing the register address and the offset to determine the address to be used to access the data; and executing the relocated instruction at the another memory location, the executing using the determined address to access the data.
地址 Armonk NY US