Patent ID: 6112025
Filing Date: 2000-08-29
Classification: G06F

Abstract:
A method of dynamically linking a compiled procedure to referenced object components during execution of the compiled procedure, comprising the steps of:(A) prior to executing the compiled procedure, modifying the compiled procedure a first time by replacing a first instruction in the compiled procedure that references a first object component with a replacement instruction that invokes execution of a dynamic resolution procedure;(B) executing the compiled procedure, and when execution of the compiled procedure reaches said replacement instruction, executing said replacement instruction by invoking execution of said dynamic resolution procedure so as to link the compiled procedure to said first object component;(C) while executing said dynamic resolution procedure, (C1) locating said first object component, (C2) modifying the compiled procedure a second time by replacing said replacement instruction in the compiled procedure with a patch instruction, corresponding to said first instruction, that references said located first object component, (C3) resetting a program counter value associated with execution of the compiled procedure so that when said dynamic resolution procedure returns back to the compiled procedure, said patch instruction is executed next; and (C4) returning back to the compiled procedure; and(D) after execution of the dynamic resolution procedure, executing the patch instruction in the modified compiled procedure.