A method for translating a series of one or more instructions of a first semantic type into one or more instructions of a second semantic type, comprising the steps of:
- providing a first memory;
- providing a second memory;
- translating a sequence of instructions of the first semantic type stored in the first memory into one or more primary instructions of the second semantic type and storing the instructions of the second type in the second memory;
- upon a request from the processor for the sequence of instructions of the first semantic type:
- providing the corresponding instructions of the second semantic type if available in the second memory;
- providing the sequence of instructions of the first semantic type if the corresponding instructions of the second semantic type are not available in the second memory.