Method, apparatus and computer program for executing a program
First Claim
1. A method for executing a program comprising a function call and one or more subsequent instructions, the method comprising the steps of:
- processing, on a first thread, a function defined by the function call, the function having one or more programmer predefined typical return values;
for each predefined return value, pre-processing, on an additional thread, the one or more subsequent instructions assuming that the function returned that pre-defined return value, thereby enabling said processor, on completion of processing said function, to make use of the pre-processing completed by the additional thread which used the actual return value.
3 Assignments
0 Petitions
Accused Products
Abstract
There is provided a method for executing a program comprising a function call and one or more subsequent instructions. The method comprises processing, on a first thread, a function defined by the function call, the function having one or more programmer predefined typical return values. For each predefined return value, the one or more subsequent instructions are pre-processed on an additional thread assuming that the function returned that pre-defined return value. In this way the processor, on completion of processing said function is able to make use of the pre-processing completed by the additional thread which used the actual return value.
-
Citations
8 Claims
-
1. A method for executing a program comprising a function call and one or more subsequent instructions, the method comprising the steps of:
-
processing, on a first thread, a function defined by the function call, the function having one or more programmer predefined typical return values;
for each predefined return value, pre-processing, on an additional thread, the one or more subsequent instructions assuming that the function returned that pre-defined return value, thereby enabling said processor, on completion of processing said function, to make use of the pre-processing completed by the additional thread which used the actual return value. - View Dependent Claims (2, 3, 7)
-
-
4. An apparatus for executing a program comprising a function call and one or more subsequent instructions, the apparatus comprising:
-
means for processing, on a first thread, a function defined by the function call, the function having one or more predefined typical return values;
means for pre-processing for each predefined return value, on an additional thread, the one or more subsequent instructions assuming that the function returned that pre-defined return value, thereby enabling said processor, on completion of processing said function, to make use of the pre-processing completed by the additional thread which used the actual return value. - View Dependent Claims (5, 6)
-
-
8. A compiler for generating a computer program comprising a function call defining a function, having one or more programmer predefined typical return values, and one or more subsequent instructions, the compiler comprising means for generating executable code, said executable code for instructing a computer to process on a first thread the function and to pre-process, for each defined typical return value, on an additional thread the one or more subsequent instructions assuming that the function returned that pre-defined return value, thereby enabling said processor, on completion of processing said function, to make use of the pre-processing completed by the additional thread which used the actual return value.
Specification