Translator for translating source code for selective unrolling of loops in the source code
First Claim
1. A data processing system including a processor programmed to act as a translator for translating source code instructions to object code instructions that are executed by the data processing system, the programmed processor comprising:
- means for translating a first type of source code instructions that constitute a loop into an equivalent set of unrolled object code instructions for execution by the data processing system; and
means for translating a second type of source code instructions that constitute a loop into object code so as to retain the loop designated by the second type of instructions.
1 Assignment
0 Petitions
Accused Products
Abstract
A translator translates user source code into user object code such as machine code. The translator responds differently to two unique types of loops in the source code. In particular, the translator responds to a first type of loop in the source code by generating an equivalent set of object code instructions that unroll iterations of the loop. In contrast, the translator responds to a second type of loop retaining the loop in the object code. As such, the loop is not unrolled, but rather remains intact.
137 Citations
5 Claims
-
1. A data processing system including a processor programmed to act as a translator for translating source code instructions to object code instructions that are executed by the data processing system, the programmed processor comprising:
-
means for translating a first type of source code instructions that constitute a loop into an equivalent set of unrolled object code instructions for execution by the data processing system; and means for translating a second type of source code instructions that constitute a loop into object code so as to retain the loop designated by the second type of instructions. - View Dependent Claims (2, 3)
-
-
4. In a data processing system, a machine implemented method of translating user source code into executable object code and of executing the object code, comprising the steps of:
-
retrieving source code from memory; translating the source code to object code, including; a) translating a first type of source code instructions that constitute a loop into unrolled object code instructions executable by the data processing system; and b) translating a second type of source code instructions that constitute a loop into object code instructions executable by the data processing system so as to retain the loop constituted by the second type of source code instructions; storing the object code instructions in memory; and executing the object code such that the object code translated from the first type of source code instructions is executed as straight line code and the object code translated from the second type of source code instructions is executed as an indexed loop. - View Dependent Claims (5)
-
Specification