JPS6319908B2 - - Google Patents

Info

Publication number
JPS6319908B2
JPS6319908B2 JP3119782A JP3119782A JPS6319908B2 JP S6319908 B2 JPS6319908 B2 JP S6319908B2 JP 3119782 A JP3119782 A JP 3119782A JP 3119782 A JP3119782 A JP 3119782A JP S6319908 B2 JPS6319908 B2 JP S6319908B2
Authority
JP
Japan
Prior art keywords
unit
intermediate code
existence
loop
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP3119782A
Other languages
Japanese (ja)
Other versions
JPS58149569A (en
Inventor
Yukio Kamya
Koichiro Hotsuta
Masaaki Takiuchi
Toshihiro Hirabayashi
Masaki Aoki
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3119782A priority Critical patent/JPS58149569A/en
Publication of JPS58149569A publication Critical patent/JPS58149569A/en
Publication of JPS6319908B2 publication Critical patent/JPS6319908B2/ja
Granted legal-status Critical Current

Links

Classifications

    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06F—ELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00—Arrangements for software engineering
    • G06F8/40—Transformation of program code
    • G06F8/41—Compilation
    • G06F8/45—Exploiting coarse grain parallelism in compilation, i.e. parallelism between groups of instructions

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Executing Machine-Instructions (AREA)
  • Complex Calculations (AREA)
  • Devices For Executing Special Programs (AREA)
  • Advance Control (AREA)

Description

【発明の詳細な説明】 (A) 発明の技術分野 本発明は、スカラ配列化による並列処理化処理
方式、特に複数の並列演算部をそなえたベクトル
処理プロセツサに対して、与えられたソース・プ
ログラムから目的プログラムを生成して供給する
コンパイラにおいて、単純変数をもつループに関
して、当該単純変数についてループの入口と出口
とにおけるビジー状態を調べて分類を行い、当該
分類にもとづいて夫々並列処理化のための処理を
行うようにしたスカラ配列化による並列化処理方
式に関するものである。
[Detailed Description of the Invention] (A) Technical Field of the Invention The present invention relates to a parallel processing method using scalar arraying, particularly to a vector processing processor equipped with a plurality of parallel calculation units. In a compiler that generates and supplies a target program from the above, for loops with simple variables, the busy states of the simple variables at the entrance and exit of the loop are examined and classified, and based on the classification, each of the loops is classified for parallel processing. The present invention relates to a parallel processing method using scalar array processing, which performs the following processing.

(B) 技術の背景と問題点 例えば、第1図Aに示す如く、ベクトルAに属
するエレメントa1,a2,…とベクトルBに属する
エレメントb1,b2,…との各エレメント相互を加
算して、エレメントc1,c2,…をもつベクトルC
を生成するような、ベクトル命令を実行するベク
トル処理プロセツサが存在している。第1図A図
示の場合、第i番目のエレメント相互の加算を行
なうか否かをマスク・エレメントm1,m2,…に
て指示するようにされており、第1図Bに一般化
して示す如き処理が行なわれる。
(B) Technical background and problems For example, as shown in Figure 1A, if the elements a 1 , a 2 , ... belonging to vector A and the elements b 1 , b 2 , ... belonging to vector B are By adding, vector C with elements c 1 , c 2 ,...
There are vector processing processors that execute vector instructions, such as those that generate . In the case shown in FIG. 1A, mask elements m 1 , m 2 , . . . indicate whether or not to perform mutual addition of the i-th element. The processing shown is performed.

上記の如き処理を行なうベクトル処理プロセツ
サを有するデータ処理システムは、一実施例とし
て第2図図示の如きシステム構成をもつている。
図中の符号1は主記憶装置、2はメモリ制御装
置、3はベクトル処理プロセツサ、4はチヤネ
ル・プロセツサ、5は大記憶装置、6はスカラ処
理回路部、7はベクトル処理回路、8―0,8―
1,…は夫々浮動小数点データ・レジスタ、9―
0,9―1,…は夫々複数個のデータ(エレメン
ト・データ)を格納し得るベクトル・レジスタ、
10―0,10―1,…は夫々複数個のマスク・
データ(マスク・エレメント・データ)を格納し
得るマスク・レジスタ、11はベクトル長レジス
タであつて各ベクトルレジスタに格納されるエレ
メントの個数情報がセツトされるもの、12―
0,12―1は夫々メモリ・アクセス・パイプラ
イン、13は加減算パイプライン、14は乗算処
理パイプライン、15は除算処理パイプライン、
16はマスク処理パイプラインを表わしている。
A data processing system having a vector processing processor that performs the above processing has a system configuration as shown in FIG. 2 as an embodiment.
In the figure, 1 is the main memory, 2 is the memory control device, 3 is the vector processing processor, 4 is the channel processor, 5 is the large storage device, 6 is the scalar processing circuit, 7 is the vector processing circuit, 8-0 ,8-
1,... are floating point data registers, 9-
0, 9-1, ... are vector registers that can each store multiple pieces of data (element data),
10-0, 10-1,... are multiple masks/
a mask register capable of storing data (mask element data); 11 a vector length register in which information on the number of elements stored in each vector register is set; 12-
0 and 12-1 are memory access pipelines, 13 is an addition/subtraction pipeline, 14 is a multiplication processing pipeline, 15 is a division processing pipeline,
16 represents a mask processing pipeline.

上記の如きベクトル処理プロセツサが処理を実
行するに当つて、当該プロセツサが実行するに適
した形に、与えられたソース・プログラムをコン
パイルし目的プログラムを生成することが行なわ
れる。当該コンパイルを行なうコンパイラの構成
は第3図を参照して後述されるが、当該コンパイ
ラによるコンパイル処理に当つて、ベクトル処理
プロセツサによる処理が実行される際に、上述の
パイプライン演算部による処理を有効に活かし得
るように並列実行可能な形にコンパイルすること
が望まれる。
When a vector processing processor as described above executes a process, a given source program is compiled into a form suitable for execution by the processor to generate a target program. The configuration of the compiler that performs this compilation will be described later with reference to FIG. It is desirable to compile it in a form that can be executed in parallel so that it can be effectively utilized.

しかし従来、単純変数(スカラ変数ともいう)
をもつループに関してループの入口や出口におい
て当該単純変数がビジー状態即ちその入口や出口
において当該単純変数が活きている場合において
は、第6図に示す如く入口ビジーであつて「総
和」と認識されたもの(本発明にいう分類「1」
のもの)以外は並列実行不可であるものとして取
扱われていた。即ちベクトル処理プロセツサがス
カラ命令によつて処理する形にコンパイルされて
いた。
However, traditionally, simple variables (also called scalar variables)
If the simple variable is busy at the entrance or exit of the loop for a loop with (Classification “1” according to the present invention)
) were treated as not being able to be executed in parallel. That is, the vector processing processor was compiled in a form that processed using scalar instructions.

なおビジーであることについて、第19図に示
す如き処理が存在している場合を例に挙げると、
即ち、図示においてデータXが定義され、次い
でにおいてデータXが参照され、またにおい
てデータXが参照され、更ににおいてデータX
が定義されている如き場合を例に挙げると、に
おいて定義されたデータXの値がにおいて参
照されるために、図示からまでの間ではデー
タXはビジーであるという。これに対して、図示
ととの間では、以降までの間においてデ
ータXが参照されることがなければ、において
データXが再定義されるためにで定義された値
は保持しておく意味がない。このために、ビジー
でなくなる。
Regarding the busy status, let us take as an example the case where there is a process as shown in Fig. 19.
That is, in the illustration, data X is defined, then data X is referenced in , data X is referenced in , and data
For example, in the case where is defined, the value of data X defined in is referenced in , so data X is said to be busy from the time shown in the figure to . On the other hand, between the diagram and , if the data do not have. This makes it less busy.

(C) 発明の目的と構成 本発明は、上記の点について検討を進め、単純
変数の存在態様が予め定められた分類に該当する
ものについて並列実行化を促進するようにするこ
とを目的としており、(i)ループの入口と出口とに
おける単純変数のビジー状態を調べ、(ii)当該単純
変数の存在態様を分類し、(iii)分類結果に応じて
夫々の形で単純変数配列化を行つて、並列実行化
を図るようにしたことを特徴としている。以下図
面を参照しつつ説明する。
(C) Purpose and Structure of the Invention The purpose of the present invention is to proceed with consideration of the above points and to promote parallel execution of simple variables whose existence mode falls under predetermined classifications. , (i) Check the busy state of simple variables at the entrance and exit of the loop, (ii) Classify the state of existence of the simple variables, and (iii) Arrange simple variables in each form according to the classification results. The feature is that it is designed to be executed in parallel. This will be explained below with reference to the drawings.

(D) 発明の実施例 第3図は本発明に用いるコンパイラの一実施例
構成、第4図は本発明においてソース・プログラ
ムを中間コードに移してゆく態様を説明する説明
図、第5図はソース・プログラムをベクトル化し
てゆく態様を説明する説明図、第6図は従来から
並列実行可能とされていたループの態様、第7図
はベクトル化部における本発明に直接関連する部
分の一実施例フローチヤート、第8図は単純変数
の存在態様を説明する説明図、第9図ないし第1
3図は夫々本発明にいう一実施例分類別処理態様
を示す。また第14図ないし第15図は順に夫々
本発明にいう分類「1」ないし分類「5」に対応
した所の変形の態様例を示している。
(D) Embodiment of the Invention Figure 3 shows the configuration of an embodiment of the compiler used in the present invention, Figure 4 is an explanatory diagram illustrating the manner in which a source program is transferred to intermediate code in the present invention, and Figure 5 is An explanatory diagram illustrating how a source program is vectorized. Figure 6 is an example of a loop that has conventionally been considered to be able to be executed in parallel. Figure 7 is an implementation of a portion directly related to the present invention in the vectorization section. Example flowchart, Figure 8 is an explanatory diagram explaining the existence mode of simple variables, Figures 9 to 1
3 each shows an embodiment of the processing according to classification according to the present invention. Further, FIGS. 14 to 15 sequentially show examples of modifications corresponding to classifications "1" to "5" according to the present invention, respectively.

第3図において、17は大記憶装置に格納され
ているソース・プログラム、18はコンパイラ、
19はコンパイルされて大記憶装置上に格納され
る目的プログラム、20はソース解釈部、21は
記憶域割付け部、22はベクトル化部、23は中
間コード最適化部、24はレジスタ使用決定部、
25は目的プログラム出力部を表わしている。
In FIG. 3, 17 is a source program stored in a large storage device, 18 is a compiler,
19 is an object program which is compiled and stored on a large storage device; 20 is a source interpretation section; 21 is a storage allocation section; 22 is a vectorization section; 23 is an intermediate code optimization section; 24 is a register use determination section;
25 represents a target program output section.

コンパイラ18は、大記憶装置からソース・プ
ログラム17を取込んで、所望の目的プログラム
19を生成する。このとき図示の各部は次のよう
な処理を行う。
A compiler 18 takes in a source program 17 from a large storage device and generates a desired target program 19. At this time, each of the illustrated units performs the following processing.

即ち、ソース解釈部20はソース・プログラム
17を大記憶装置から取込み、文解釈を行つて中
間コード(テキスト)に展開する。例えばソー
ス・プログラムが第4図図示左側の如き場合に図
示右側に示す中間コードに展開する。記憶域割付
け部21はプログラム内に出現する各種データに
対応して記憶域内番地を割当てる。ベクトル化部
22は、プログラム中のループ構造を検出し、並
列実行可能部分を認識し第5図図示の如く中間コ
ード変更を行う。中間コード最適化部23は、中
間コードのレベルで、第2図図示の如きベクトル
処理プロセツサを有効に利用するための最適化を
施す。レジスタ使用決定部24は、中間コードに
現われたデータに対して、ベクトル処理プロセツ
サ上の資源(レジスタ)を割当てる。そして目的
プログラム出力部25は機械命令語を大記憶装置
へ出力しかつ命令語レベルでの最適化を行う。
That is, the source interpreter 20 takes in the source program 17 from the large storage device, performs sentence interpretation, and develops it into intermediate code (text). For example, if the source program is as shown on the left side of FIG. 4, it is developed into intermediate code shown on the right side of the figure. The storage area allocation unit 21 allocates addresses within the storage area corresponding to various data appearing within the program. The vectorization unit 22 detects loop structures in the program, recognizes parallel executable parts, and changes the intermediate code as shown in FIG. The intermediate code optimization section 23 performs optimization at the intermediate code level to effectively utilize a vector processing processor as shown in FIG. The register use determining unit 24 allocates resources (registers) on the vector processing processor to data appearing in the intermediate code. Then, the target program output unit 25 outputs the machine instruction words to the large storage device and performs optimization at the instruction word level.

ベクトル処理プロセツサを稼動させるためのコ
ンパイラは第3図図示の如き構成をもつており、
上記ベクトル化部において本発明にいう並列実行
可能なものについてベクトライズ(並列実行化)
してゆく。
The compiler for operating the vector processing processor has the configuration shown in Figure 3.
The vectorization unit vectorizes (parallel execution) what can be executed in parallel according to the present invention.
I will do it.

しかし、従来、ループ内に単純変数をもちかつ
当該単純変数がループの入口および/または出口
においてビジー状態となつているものについて
は、第6図図示の如く予め定められた形態をもつ
もの以外は、並列実行不可であるとされていた。
However, conventionally, for loops that have a simple variable and the simple variable is in a busy state at the entrance and/or exit of the loop, other than those that have a predetermined form as shown in Figure 6, , it was believed that parallel execution was not possible.

本発明においては、第3図図示のベクトル化部
22において、第7図図示の如き処理を行わせる
ようにして、単純変数の存在態様を分類し、分類
された形のループについて、単純変数を夫々の形
で配列化し、並列実行可能なものとしてコンパイ
ルするようにしている。即ち、 (1) 与えられたソース・プログラムに対応して、
DOループの存在を検出し、 (2) 当該ループ内で定義される単純変数の存在を
検出して取出す。
In the present invention, the vectorization unit 22 shown in FIG. 3 performs the processing shown in FIG. They are arrayed in each format and compiled as something that can be executed in parallel. That is, (1) Corresponding to a given source program,
Detects the existence of a DO loop, and (2) detects the existence of a simple variable defined within the loop and retrieves it.

(3) 取出された単純変数について、第8図に示す
如く、ループの入口または出口におけるビジー
状態を調べると共に、当該単純変数の存在態様
にもとづいて分類を行う。
(3) Regarding the retrieved simple variables, as shown in FIG. 8, the busy state at the entrance or exit of the loop is checked, and the simple variables are classified based on the state of existence of the simple variables.

(4) 分類不可であるものについては、当該ループ
の並列実行化ができないものとして、スカラ命
令による処理実行の形でコンパイルが進められ
る。
(4) For loops that cannot be classified, it is assumed that the loop cannot be executed in parallel, and compilation proceeds by executing processing using scalar instructions.

(5) 分類可能なものについては、第9図ないし第
13図に示す形で、夫々の分類に応じた形の単
純変数配列化を行う。即ち分類別処理を行う。
(5) For items that can be classified, create simple variable arrays according to each classification as shown in Figures 9 to 13. That is, processing by classification is performed.

(6) 1つの単純変数について分類別処理が行われ
ると、次にチエツクすべき単純変数があれば、
これについて処理が繰返される。
(6) Once classification processing is performed on one simple variable, if there is a simple variable to check next,
The process is repeated for this.

(7) そして、上記分類可能なループについては、
ベクトル化部22における処理機能によつて、
ベクトライズされてゆく。
(7) And for the above classifiable loops,
By the processing function in the vectorization unit 22,
It is vectorized.

第8図は単純変数の存在態様を説明する説明図
を示し、1つの単純変数がループの入口または出
口においてビジー状態にあるか否かにもとづい
て、図示の4個の枠内のいずれかが調べられる。
そして、 (i) 入口でビジーでありかつ出口でビジーである
ものについて、分類「1」と分類「2」と分類
「3」と「その他……分類不能」とに区分され、 (ii) 入口でビジーでありかつ出口でビジーでない
ものについて、「分類不能」とされ、 (iii) 入口でビジーでなくかつ出口においてビジー
であるものについて、分類「4」とされ、 (iv) 入口でビジーでなくかつ出口でもビジーでな
いものについて、分類「5」とされる。
FIG. 8 shows an explanatory diagram explaining the existence of simple variables, and depending on whether one simple variable is busy at the entrance or exit of a loop, one of the four boxes shown in the diagram It can be investigated.
Then, (i) those that are busy at the entrance and busy at the exit are classified into category ``1'', category ``2'', category ``3'', and ``other...unclassifiable''; (ii) entrance (iii) those that are not busy at the entrance and are busy at the exit are classified as "4"; (iv) those that are not busy at the entrance and busy at the exit are classified as "4"; If there is no exit and the exit is not busy, it is classified as "5".

なお、上記分類「2」において「アーテイキユ
レーシヨンの位置」とはループを実行するときに
必らず通る部分を意味している。今第20図に示
す如き処理ループが存在するものとしたとき、図
示ハツチングで示す部分がアーテイキユレーシヨ
ンの位置である。そして、図示やで示す部分
は、条件によつて実行したりしなかつたりするこ
とから、アーテイキユレーシヨンの位置とは言わ
ない。
In addition, in the above-mentioned classification "2", "position of artefacturing" means a part that must be passed through when executing a loop. Assuming that a processing loop as shown in FIG. 20 exists, the hatched area in the diagram is the articulation position. The portions indicated by the arrows in the drawings are not referred to as articulation positions because they may or may not be executed depending on the conditions.

分類「1」の場合には、第9図図示の如く、配
列化を行わない。
In the case of classification "1", as shown in FIG. 9, no arraying is performed.

分類「2」の場合には、第10図図示の如く、
単純変数に対応して配列VTを用意し、最初の定
義の存在位置に応じて、単純変数をVT(I)また
VT(I+1)で置換するなどを行う。なお上記
配列VTは配列ベクトル・テンポラリであり、い
わば記憶域に置く配列ベクトル・データである。
なお当該配列VTについては、コンパイルなどに
当つてベクトル・レジスタを割当てることはない
と考えてよい。
In the case of classification "2", as shown in Figure 10,
Prepare an array VT corresponding to the simple variable, and depending on the position of the first definition, set the simple variable to VT(I) or
Replace with VT(I+1), etc. Note that the above array VT is an array vector temporary, so to speak, array vector data placed in a storage area.
Note that it can be assumed that no vector register is allocated to the array VT during compilation or the like.

また説明中に示す添字Iは、例えば、 DO 10 I=1、N : : (DOループ本体) : : 10 CONTINUE などの形で与えるDOループの制御変数(DO変
数)である。また添字Kは配列VTを制御するた
めに仮に導入した単純変数であり、例えば K=1 DO 10 I=1、N : : VT(K)=……… K=K+1 : : 10 CONTINUE などの形で利用されるものである。
Further, the subscript I shown in the explanation is a control variable (DO variable) of the DO loop given in the form of, for example, DO 10 I=1, N : : (DO loop body) : : 10 CONTINUE. Also, the subscript K is a simple variable temporarily introduced to control the array VT, for example, K=1 DO 10 I=1, N: : VT(K)=...... K=K+1 : : 10 CONTINUE, etc. It is used in

分類「3」の場合には、第11図図示の如く、
最初の定義の存在位置に応じて、単純変数をVT
(K)またはVT(K+1)で置換するなどを行う。
In the case of classification "3", as shown in Figure 11,
VT a simple variable depending on the position of the first definition
(K) or VT (K+1), etc.

分類「4」の場合には、第12図図示の如く、
単純変数をVT(I)で置換するなどを行う。
In the case of classification "4", as shown in Figure 12,
Replace simple variables with VT(I), etc.

分類「5」の場合には、第13図図示の如く、
単純変数をVT(I)で置換するようにする。
In the case of classification "5", as shown in Figure 13,
Replace simple variables with VT(I).

なお第14図ないし第48図は順に夫々上記分
類「1」ないし「5」に対応した所の変形の態様
例を示している。
Note that FIGS. 14 to 48 show examples of modifications corresponding to the above classifications "1" to "5", respectively.

(E) 発明の効果 以上説明した如く、本発明によれば、単純変数
を含むループについて並列実行化を促進すること
ができ、ベクトル処理プロセツサによる処理実行
に際して高速化を図ることが可能となる。
(E) Effects of the Invention As described above, according to the present invention, it is possible to promote parallel execution of loops containing simple variables, and it is possible to increase the speed of processing executed by a vector processing processor.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はベクトル命令に対応した処理を概念的
に説明する説明図、第2図は本発明にいうベクト
ル処理プロセツサを有する処理システムの一実施
例、第3図は本発明に用いるコンパイラの一実施
例構成、第4図はソース・プログラムを中間コー
ドに移してゆく態様を説明する説明図、第5図は
ソース・プログラムをベクトル化してゆく態様を
説明する説明図、第6図は従来から並列実行可能
とされていたループの態様、第7図はベクトル化
部における本発明に直接関連する部分の一実施例
フローチヤート、第8図は単純変数の存在態様を
説明する説明図、第9図ないし第13図は夫々本
発明にいう一実施例分類別処理態様を示す。また
第14図ないし第18図は順に夫々本発明にいう
分類「1」ないし分類「5」に対応した所の変形
の態様例、第19図はビジー状態を説明する説明
図、第20図はアーテイキユレーシヨンを説明す
る説明図である。 図中、1は主記憶装置、2はメモリ制御装置、
3はベクトル処理プロセツサ、4はチヤネル・プ
ロセツサ、5は大記憶装置、9はベクトルレジス
タ、10はマスク・レジスタ、11ないし16は
夫々パイプライン演算部、17はソース・プログ
ラム、18はコンパイラ、19は目的プログラ
ム、20はソース解釈部、21は記憶割付け部、
22はベクトル化部、23は中間コード最適化
部、24はレジスタ使用決定部、25は目的プロ
グラム出力部を表わしている。
FIG. 1 is an explanatory diagram conceptually explaining processing corresponding to vector instructions, FIG. 2 is an example of a processing system having a vector processing processor according to the present invention, and FIG. 3 is an example of a compiler used in the present invention. Embodiment configuration, FIG. 4 is an explanatory diagram explaining the manner in which the source program is transferred to intermediate code, FIG. 5 is an explanatory diagram explaining the manner in which the source program is vectorized, and FIG. 6 is the conventional configuration. Aspects of loops that can be executed in parallel; FIG. 7 is a flowchart of an example of a portion directly related to the present invention in the vectorization section; FIG. 8 is an explanatory diagram illustrating the existence of simple variables; FIG. 9 The figures to FIG. 13 each show an embodiment of the processing according to classification according to the present invention. Further, FIGS. 14 to 18 are examples of modified aspects corresponding to classifications "1" to "5" according to the present invention, respectively, FIG. 19 is an explanatory diagram for explaining the busy state, and FIG. 20 is It is an explanatory view explaining artefacturing. In the figure, 1 is a main storage device, 2 is a memory control device,
3 is a vector processing processor, 4 is a channel processor, 5 is a large storage device, 9 is a vector register, 10 is a mask register, 11 to 16 are pipeline operation units, 17 is a source program, 18 is a compiler, 19 is a target program, 20 is a source interpretation section, 21 is a memory allocation section,
Reference numeral 22 represents a vectorization section, 23 an intermediate code optimization section, 24 a register use determination section, and 25 a target program output section.

Claims (1)

【特許請求の範囲】[Claims] 1 複数の並列演算部をそなえると共に複数個の
レジスタを少なくともそなえてベクトル命令を実
行するベクトル処理プロセツサに対して、与えら
れたソース・プログラムから目的プログラムを生
成して供給するコンパイラにおいて、上記ソー
ス・プログラムの文解釈を行つて中間コードに展
開するソース解釈部、プログラム中に出現する各
種データに記憶域内番地を割り当てる記憶域割付
け部、プログラム中のループ構造を検出して並列
実行可能部分の認識を行いかつ上記中間コード変
更を行うベクトル化部、中間コードのレベルで上
記ベクトル処理プロセツサを有効に利用するため
の最適化を施す中間コード最適化部、中間コード
に現われたデータに実際の資源を割当てるレジス
タ使用決定部、および目的プログラム出力部をそ
なえてなり、更に、上記ベクトル化部は、ループ
の存在を検出すると共にループ内で定義される単
純変数の存在を検出し、次いで当該単純変数のル
ープの入口と出口とにおけるビジー状態にもとづ
いて当該単純変数の存在態様を分類するよう構成
され、各分類された単純変数の存在態様にもとづ
いて夫々の分類に対応した形の単純変数配列化を
行う分類別処理を行つて並列実行化を促進するよ
うにしたことを特徴とするスカラ配列化による並
列化処理方式。
1. In a compiler that generates and supplies a target program from a given source program to a vector processing processor that is equipped with a plurality of parallel processing units and at least a plurality of registers and executes vector instructions, A source interpretation unit that interprets program statements and develops them into intermediate code; a storage allocation unit that allocates storage addresses to various data that appears in a program; and a storage allocation unit that detects loop structures in a program and recognizes parts that can be executed in parallel. a vectorization unit that performs the process and changes the intermediate code; an intermediate code optimization unit that performs optimization to effectively utilize the vector processing processor at the intermediate code level; and an intermediate code optimization unit that allocates actual resources to the data appearing in the intermediate code. The vectorization unit includes a register usage determination unit and a target program output unit, and the vectorization unit detects the existence of a loop and the existence of a simple variable defined within the loop, and then detects the existence of a simple variable defined within the loop, and then is configured to classify the state of existence of the simple variable based on the busy state at the entrance and exit of the system, and performs simple variable arraying in a form corresponding to each classification based on the state of existence of each classified simple variable. A parallel processing method using scalar arraying, characterized in that processing is performed by classification to promote parallel execution.
JP3119782A 1982-02-27 1982-02-27 Parallel processing system due to scalar arrangement Granted JPS58149569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3119782A JPS58149569A (en) 1982-02-27 1982-02-27 Parallel processing system due to scalar arrangement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3119782A JPS58149569A (en) 1982-02-27 1982-02-27 Parallel processing system due to scalar arrangement

Publications (2)

Publication Number Publication Date
JPS58149569A JPS58149569A (en) 1983-09-05
JPS6319908B2 true JPS6319908B2 (en) 1988-04-25

Family

ID=12324690

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3119782A Granted JPS58149569A (en) 1982-02-27 1982-02-27 Parallel processing system due to scalar arrangement

Country Status (1)

Country Link
JP (1) JPS58149569A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2794523B2 (en) * 1993-11-26 1998-09-10 日本アイ・ビー・エム株式会社 Inline expansion method in programming languages with array functions

Also Published As

Publication number Publication date
JPS58149569A (en) 1983-09-05

Similar Documents

Publication Publication Date Title
Ackerman Data flow languages
US4710872A (en) Method for vectorizing and executing on an SIMD machine outer loops in the presence of recurrent inner loops
US6550059B1 (en) Method for generating optimized vector instructions from high level programming languages
US5339429A (en) Parallel processing system and compiling method used therefor
US5852734A (en) Method and compiler for parallel execution of a program
Granston et al. Detecting redundant accesses to array data
JP2500079B2 (en) Program optimization method and compiler system
JPH05143332A (en) Computer system having instruction scheduler and method for rescheduling input instruction sequence
Nicolau Loop quantization: A generalized loop unwinding technique
US6279152B1 (en) Apparatus and method for high-speed memory access
Treleaven et al. A multi-processor reduction machine for user-defined reduction languages.
Gaudiot et al. Performance evaluation of a simulated data-flow computer with low-resolution actors
Roh et al. Generation and quantitative evaluation of dataflow clusters
JPH06103462B2 (en) Vector length control range division processing method
JP3196625B2 (en) Parallel compilation method
JPH0346863B2 (en)
JPS6321946B2 (en)
JPS6319906B2 (en)
JPH037989B2 (en)
JPS58149569A (en) Parallel processing system due to scalar arrangement
JPS62204374A (en) Processing system for double arithmetic optimization
JPH046020B2 (en)
Williams et al. Genetic compilers: A new technique for automatic parallelisation
JPH02132525A (en) How to compile
JPH0152779B2 (en)