Patent ID: 6115550
Filing Date: 2000-09-05
Classification: G06F

Abstract:
A method for creating and loading an image of a compiled executable program for execution in a target computer, the executable program containing a plurality of sections, the method comprising the steps of:determining whether the target computer is capable of executing an instruction appearing in the executable program by comparing an architecture value contained in an architecture section of the executable program with architecture information retrieved from an environment of the target computer, the architecture value indicating a target computer type that is capable of executing the instruction, the architecture information identifying computer type of the target computer;if the target computer is determined to be capable of executing the instruction, then performing the following steps: (1) retrieving address information contained in the architecture section of the executable program, the address information specifying location of a call instruction in another section in the executable program that is replaceable by the instruction; (2) retrieving the instruction from the architecture section of the executable program; and (3) replacing the call instruction with the retrieved instruction, replacement of the call instruction with the retrieved instruction occurring such that flow of execution of the remainder of executable program is not interfered with; andif the target computer is determined to be not capable of executing the instruction, then refraining from so replacing the call instruction;wherein the architecture value and architecture information specify two respective target computer types that are capable of executing respective versions of the same instruction set.