摘要 |
PURPOSE:To transform even a loop formed by sentences excepting a DO sentence into a vector by finding out the loop after analyzing the control structure of a program before the vector transformation processing. CONSTITUTION:A 1st intermediate text is produced from a source program by a syntax structure analyzing part 21 and a control structure analyzing part 22 compiles the 1st intermediate text into a basic block and analyzes a control flow between the basic blocks. A loop detecting part 23 detects a loop based on the control flow and an index detecting part 24 detects an index variable serving as a variable that increases or decreases by a fixed number for each repetition of the loop against the 1st intermediate text in the detected loop. Based on these information, a vector formation deciding part 25 decides possibility for the parallel execution of the 1st intermediate text in the detected loop. Then the vector formation processing is carried out by a vector text generating part 26 for the production of a 2nd intermediate text. Thus an object program is produced from the 2nd intermediate text by a code generating part 27. |