Patent ID: 7131121

Claim:
A method for determining instruction boundaries of at least one method body within a computer code loaded into a memory of a smart card comprising: a) examining in a sequential manner each instruction of the at least one method body starting with a first instruction of the at least one method body for an instruction selected from a group consisting of a forward jump instruction and a valid ending instruction; b) maintaining a Farthest Logical Return (FLR) Pointer corresponding to the instruction of the at least one method body for which the farthest forward jump instruction or the farthest valid ending instruction is detected; c) terminating the examining for a forward jump or a valid ending instruction when the instruction under examination is beyond the instruction corresponding to the FLR Pointer; and d) resolving each unresolved reference in each instruction of the at least one method body starting with the first instruction of the at least one method body and ending with the instruction corresponding to the FLR Pointer.