Multi-processor code for modification for storage areas
AssigneeCodeplay Software Limited
InventorsJens-Uwe Dolinsky, Andrew Richards, Colin Riley
Life of this patent
Estimating the term…
Abstract
A method for processing computer program code to enable different parts of the computer program code to be executed by different processing elements of a plurality of communicating processing elements. The method comprises identifying at least one first part of the computer program code, which is to be executed by a particular one of said processing elements. The method further comprises identifying at least one further part of the computer code which is related to the at least one first part of the computer code. The at least one first part of the computer program code and the at least one further part of the computer program code are caused to be executed by the particular one of said processing elements.
Claims18
A method for execution by a processor for processing computer program code to enable parts of the computer program code to be executed by processing elements of a plurality of communicating processing elements, wherein the computer program code defines a plurality of context levels and comprises a plurality of code elements, each code element including an indication to one of a plurality of data items, at least one of the plurality of data items being declared in a context level associated with a particular processing element for storage in a storage area local to the particular processing element, and at least another of the plurality of data items being declared in a context level that is not associated with a particular processing element for storage in a storage area remote from the particular processing element, the method comprising:
- processing a first part of the computer program code comprising a first one of said plurality of code elements indicating a first data item, wherein said processing comprises:
- determining a context level at which said first data item is declared;
- responsive to determining that said first data item is declared in a context level that is not associated with the particular processing element, determining a storage area in which the first data item will be stored;
- and
- creating a modification of the first part of the computer program code, the modification indicating the determined context level and the determined storage area in the first part of the computer program code.
A method according to claim a 1, wherein the first part of the computer program code further comprises a second one of said plurality of code elements referencing a second data item, the second data item is of a type definition that includes a reference to one of a plurality of storage areas.
A method for execution by a processor for processing computer program code to enable parts of the computer program code to be executed by processing elements of a plurality of communicating processing elements, wherein the computer program code defines a plurality of context levels and comprises a plurality of code elements, each code element including an indication to one of a plurality of storage areas, the method comprising:
- processing a first part of the computer program code comprising a first one of said plurality of code elements, wherein the first one of the code elements is a type definition including an indication to one of said storage areas, wherein said processing the first part of the computer program code comprises:
- determining a context level at which said type definition is declared;
- responsive to determining that said type definition is declared in a context that is not associated with the particular processing element, creating a copy of said type definition having a copied reference to said one of said storage areas;
- and
- modifying said copy by replacing said copied reference to said one of said storage areas with a reference to another one of said storage areas.
Dependencies are inferred from the claim text.