Skip to Content
Find More Like This
Return to Search

Unaligned instruction relocation

United States Patent

January 23, 2018
View the Complete Patent at the US Patent & Trademark Office
In one embodiment, a computer-implemented method includes receiving source code to be compiled into an executable file for an unaligned instruction set architecture (ISA). Aligned assembled code is generated, by a computer processor. The aligned assembled code complies with an aligned ISA and includes aligned processor code for a processor and aligned accelerator code for an accelerator. A first linking pass is performed on the aligned assembled code, including relocating a first relocation target in the aligned accelerator code that refers to a first object outside the aligned accelerator code. Unaligned assembled code is generated in accordance with the unaligned ISA and includes unaligned accelerator code for the accelerator and unaligned processor code for the processor. A second linking pass is performed on the unaligned assembled code, including relocating a second relocation target outside the unaligned accelerator code that refers to an object in the unaligned accelerator code.
Bertolli; Carlo (Dobbs Ferry, NY), O'Brien; John K. (South Salem, NY), Sallenave; Olivier H. (Baldwin Place, NY), Sura; Zehra N. (Yorktown Heights, NY)
14/ 744,047
June 19, 2015
STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT This invention was made with Government support under Contract No. B599858 awarded by Department of Energy. The Government has certain rights to this invention.