Patent ID: 11966727
Assignee: LZLABS GMBH
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A computer implemented method for executing a first program compiled for a source architecture on a machine having a target architecture different from the source architecture, the method comprising:
receiving by a processor said first program comprising first executable code compiled to execute on a source architecture, the processor being of the source architecture or the target architecture;
decompiling a load module of the first program into intermediate computer code formatted according to an intermediate code format;
identifying a set of addresses that are exposed for external reference by a second program compiled to execute on the source architecture;
storing in a computer memory an index of said set of addresses that are exposed for external reference, wherein the index comprises values that correspond to invalid addresses in the target architecture;
recompiling the intermediate computer code into target executable code configured for the target architecture;
incorporating the index of said set of addresses into the target executable code; and
executing said target executable code on a processor having said different target architecture, wherein said executing generates at least one invalid address and said invalid address is translated into a valid address using the incorporated index in the target executable code;
wherein the identifying the set of addresses that are exposed for external reference comprises, in a first pass, examining syntax of instructions in machine code of said first program, determining from the syntax of the instructions that a set of symbols are addresses, and adding the symbols to the index.