JPH0744397A - Program processing accelerating system - Google Patents

Program processing accelerating system

Info

Publication number
JPH0744397A
JPH0744397A JP5189799A JP18979993A JPH0744397A JP H0744397 A JPH0744397 A JP H0744397A JP 5189799 A JP5189799 A JP 5189799A JP 18979993 A JP18979993 A JP 18979993A JP H0744397 A JPH0744397 A JP H0744397A
Authority
JP
Japan
Prior art keywords
program
branch instruction
measurement
source program
branch
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.)
Pending
Application number
JP5189799A
Other languages
Japanese (ja)
Inventor
Tarou Kokadosaki
太郎 小門前
Hideo Mihashi
秀夫 三橋
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP5189799A priority Critical patent/JPH0744397A/en
Publication of JPH0744397A publication Critical patent/JPH0744397A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To accelerate the processing of a program to any specific data by excluding a branching instruction which is not operated at the time of execution, in a source program. CONSTITUTION:This system is composed of a measuring means 1-1 for identifying and recording the branching instruction from a source program 1-2, integrating means 1-3 for integrating the measuring means 1-1 into the source program 1-2, executing program generating means 1-5 for preparing an executing program for measurement from a source program 1-4 into which the measuring means is already integrated, information collecting means 1-8 for collecting the information of a branch point at the time of execution by executing specified data 1-7 with an executing program 1-6 for measurement, and branching instruction excluding means 1-10 for excluding the branch and the branching instruction which are not executed from a measured value 1-9 and the source program 1-2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、特定データに対するプ
ログラム処理高速化方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program processing speed-up system for specific data.

【0002】[0002]

【従来の技術】従来のプログラム処理高速化方式は、入
力データの統計的な特性に注目したり、プログラムロジ
ックを最適化することにより高速化を行っていた。コン
ピュータプログラムの最適化方法としては、特開平3−
127127に開示されているように、プログラムルー
プ内にあるループに無関係な条件付き分岐命令をプログ
ラムロジックに矛盾が起こらないようにループの外に追
い出すことにより、プログラムの高速化を図る方式がと
られていた。
2. Description of the Related Art A conventional program speed-up method has been speeded up by paying attention to the statistical characteristics of input data and optimizing the program logic. A computer program optimization method is disclosed in Japanese Patent Laid-Open No.
As disclosed in Japanese Patent No. 127127, a method for speeding up a program is adopted by ejecting a conditional branch instruction irrelevant to a loop in a program loop to the outside of the loop so that a contradiction does not occur in the program logic. Was there.

【0003】[0003]

【発明が解決しようとする課題】前記従来の方式では、
条件付分岐命令の基となる制御変数がループ内で一定値
を取る場合には高速化を図ることができたが、ループ内
で制御変数の値が変化する場合は高速化ができなった。
そこで、用途が特定されていて、入力値が限定されてい
る入力データに対しては高速化の限界ができてしまい、
高速化の余地が残されていた。
SUMMARY OF THE INVENTION In the above conventional method,
When the control variable that is the basis of the conditional branch instruction has a constant value in the loop, the speed can be increased, but when the value of the control variable changes in the loop, the speed cannot be increased.
Therefore, there is a limit to the speedup for input data whose usage is specified and input values are limited,
There was still room for speeding up.

【0004】[0004]

【課題を解決するための手段】本発明は、特定の入力デ
ータに対するプログラム処理高速化方式において、ソー
スプログラムから分岐命令を識別し、測定値テーブルに
記録する測定手段と、ソースプログラムに前記測定手段
を組み込む組み込み手段と、前記測定手段組み込み済ソ
ースプログラムから測定用実行プログラムを作成する実
行プログラム生成手段と、前記測定用実行プログラムに
特定のデータを与えて実行させてプログラム中の個々の
分岐命令が実行時に実行した分岐の情報を収集する情報
収集手段と、前記情報収集で得た測定値と前記ソースプ
ログラムから実行されなかった分岐に対して、その分岐
と分岐命令を削除する分岐命令削除手段とから構成され
ていることを特徴とするプログラム処理高速化方式であ
る。
According to the present invention, in a program processing speed-up method for specific input data, a measuring means for identifying a branch instruction from a source program and recording it in a measurement value table, and the measuring means for the source program. Embedded means, an execution program generation means for creating an execution program for measurement from the source program already installed in the measurement means, and individual branch instructions in the program executed by giving specific data to the execution program for measurement. Information collecting means for collecting information on branches executed at the time of execution, and branch instruction deleting means for deleting the branch and branch instruction for the measurement value obtained by the information collection and the branch not executed from the source program It is a program processing speed-up method characterized by being configured from

【0005】[0005]

【実施例】本発明について図面を参照して説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described with reference to the drawings.

【0006】図1は、本発明の一実施例を示すブロック
図である。本発明のプログラム処理高速化方式は、ソー
スプログラム1−2と、ソースプログラム1−2から分
岐命令を識別し記録する測定手段1−1と、ソースプロ
グラム1−2に測定手段1−1を組み込む組み込み手段
1−3と、測定手段組み込み済ソースプログラム1−4
と、測定手段組み込み済ソースプログラム1−4から測
定用の実行プログラムを作成する実行プログラム生成手
段1−5と、測定用実行プログラム1−6と、特定のデ
ータ1−7と、測定用実行プログラム1−6に特定のデ
ータ1−7を与えて実行させてプログラム中の個々の分
岐命令が実行時に実行した分岐の情報を収集する情報収
集手段1−8と、測定値1−9と、測定値1−9とソー
スプログラム1−2とから、実行されなかった分岐に対
して、その分岐と分岐命令を削除する分岐命令削除手段
1−10と、分岐命令削除済みソースプログラム1−1
1とから構成されている。
FIG. 1 is a block diagram showing an embodiment of the present invention. The program processing speed-up method of the present invention incorporates a source program 1-2, a measuring unit 1-1 for identifying and recording a branch instruction from the source program 1-2, and a measuring unit 1-1 in the source program 1-2. Built-in means 1-3 and measurement means built-in source program 1-4
And an execution program generation means 1-5 for creating an execution program for measurement from the source program 1-4 with built-in measurement means, an execution program for measurement 1-6, specific data 1-7, and an execution program for measurement. Information collecting means 1-8 for collecting specific information 1-7 to 1-6 and executing it to collect information on branches executed by individual branch instructions in the program, measurement value 1-9, and measurement From the value 1-9 and the source program 1-2, for a branch that has not been executed, a branch instruction deleting unit 1-10 that deletes the branch and the branch instruction, and a source program 1-1 with the branch instruction deleted.
1 and 1.

【0007】図2は、測定手段1−1が分岐命令識別手
段2−1と記録手段2−2とから構成されていることを
示している。
FIG. 2 shows that the measuring means 1-1 comprises a branch instruction identifying means 2-1 and a recording means 2-2.

【0008】図3は、測定値1−9の内容を表わした測
定値テーブル3−1であり、分岐命令識別子3−2とそ
れに対応した記録3−3とから構成されていることを示
す。
FIG. 3 is a measurement value table 3-1 showing the contents of the measurement values 1-9, and is shown to be composed of a branch instruction identifier 3-2 and a record 3-3 corresponding thereto.

【0009】次にこのように構成された本実施例の特定
データに対するプログラム処理高速化の動作について説
明する。
Next, the operation of accelerating the program processing for the specific data of the present embodiment configured as described above will be described.

【0010】まず、組み込み手段1−3を用いて、オリ
ジナルソースプログラム1−2に測定手段1−1を組み
込むことによって、測定手段組み込み済ソースプログラ
ム1−4を生成する。図4を用いて測定手段組み込み済
ソースプログラム1−4の分岐命令部分の説明をする。
組み込み手段1−3は、1つの分岐命令に対して分岐命
令識別手段2−1を、分岐の各々の処理1,処理2に対
して記録手段2−2をソースプログラム1−2に組み込
んでいる。ここで分岐命令識別手段2−1は、組み込ま
れた分岐に対して、実行プログラムを構成するソースプ
ログラム群全体の中で一意に決まる分岐命令識別子3−
2ごとに、測定値テーブル3−1に処理が実行されたか
否かを記録3−3として情報収集手段1−8実行時に記
録する手段である。
First, by incorporating the measuring means 1-1 into the original source program 1-2 using the incorporating means 1-3, the measuring means incorporated source program 1-4 is generated. The branch instruction part of the source program 1-4 with built-in measuring means will be described with reference to FIG.
The incorporating means 1-3 incorporates the branch instruction identifying means 2-1 for one branch instruction and the recording means 2-2 for each processing 1 and processing 2 of the branch into the source program 1-2. . Here, the branch instruction identification unit 2-1 determines a branch instruction identifier 3-that is uniquely determined for the incorporated branch within the entire source program group that constitutes the execution program.
It is a means for recording whether or not the process is executed in the measurement value table 3-1 for each 2 as a record 3-3 when the information collecting means 1-8 is executed.

【0011】実行プログラム生成手段1−5は、測定手
段組み込み済のソースプログラム1−4から測定用実行
プログラム1−6を作成する。この測定用実行プログラ
ム1−6で特定のデータ1−7を実行することによっ
て、情報収集手段1−8は特定データ1−7に対する測
定値1−9を得る。測定値1−9とソースプログラム1
−2とから分岐命令削除手段1−10によって分岐命令
削除済のソースプログラム1−11が得られる。この分
岐命令削除済のソースプログラム1−11が、特定のデ
ータ1−7に対してソースプログラム1−2を高速に実
行するために不要な分岐命令を削除した最適化されたソ
ースプログラムである。
The execution program generation means 1-5 creates the measurement execution program 1-6 from the source program 1-4 already installed in the measurement means. By executing the specific data 1-7 with this measurement execution program 1-6, the information collecting means 1-8 obtains the measured value 1-9 for the specific data 1-7. Measured value 1-9 and source program 1
-2 and the branch instruction deletion means 1-10 obtain the source program 1-11 from which the branch instruction has been deleted. The source program 1-11 in which the branch instruction has been deleted is an optimized source program in which unnecessary branch instructions are deleted in order to execute the source program 1-2 at high speed with respect to the specific data 1-7.

【0012】図5は、分岐命令削除済のソースプログラ
ム1−11中の分岐命令のあった部分を実行結果毎に示
している。パターンAは、分岐命令に対してYESの場
合、つまり処理1のみが実行された場合を示し、分岐命
令と処理2が削除されている。パターンBは、NOの場
合、つまり処理2のみが実行された場合を示し、分岐命
令と処理1が削除されている。パターンCは、YESと
NOの両方の場合、つまり処理1も処理2も共に実行さ
れた場合で、何も削除されない。
FIG. 5 shows, for each execution result, a portion of the source program 1-11 in which the branch instruction has been deleted, which has a branch instruction. Pattern A shows the case of YES for the branch instruction, that is, the case where only the process 1 is executed, and the branch instruction and the process 2 are deleted. Pattern B indicates a case of NO, that is, a case where only the process 2 is executed, and the branch instruction and the process 1 are deleted. Pattern C is YES and NO, that is, both process 1 and process 2 are executed, and nothing is deleted.

【0013】[0013]

【発明の効果】以上説明したように、本発明による特定
データに対するプログラム処理高速化方式は、ソースプ
ログラム中で実行時に作用しなかった分岐命令を削除す
ることによって特定データに対するプログラム処理速度
を大幅に向上させる効果をもつ。すなわち、汎用的に作
られたプログラムを特定にユーザや使用目的に合うよう
にカスタマイズして処理の高速化を図る際に有効であ
る。
As described above, the method for accelerating program processing for specific data according to the present invention significantly increases the program processing speed for specific data by deleting branch instructions that did not act during execution in the source program. Has the effect of improving. In other words, it is effective in customizing a general-purpose program to suit a particular user or purpose of use, and thereby speeding up the process.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例のブロック図を示す。FIG. 1 shows a block diagram of one embodiment of the present invention.

【図2】測定手段の構成図を示す。FIG. 2 shows a configuration diagram of measuring means.

【図3】測定値テーブルの内容を示す。FIG. 3 shows the contents of a measurement value table.

【図4】測定手段組み込み済のソースプログラムの分岐
命令部分のフロー図を示す。
FIG. 4 shows a flow chart of a branch instruction part of a source program in which measuring means is incorporated.

【図5】条件別に分岐命令削除済のソースプログラムの
フロー図を示す。
FIG. 5 shows a flow chart of a source program in which a branch instruction has been deleted by condition.

【符号の説明】[Explanation of symbols]

1−1 測定手段 1−2 ソースプログラム 1−3 組み込み手段 1−4 測定手段組み込み済ソースプログラム 1−5 実行プログラム生成手段 1−6 測定用実行プログラム 1−7 特定のデータ 1−8 情報収集手段 1−9 測定値 1−10 分岐命令削除手段 1−11 分岐命令 2−1 分岐命令識別手段 2−2 記録手段削除済ソースプログラム 3−1 測定値テーブル 3−2 分岐命令識別子 3−3 記録 1-1 Measuring Means 1-2 Source Program 1-3 Embedding Means 1-4 Measuring Means Embedded Source Program 1-5 Execution Program Generation Means 1-6 Measurement Execution Program 1-7 Specific Data 1-8 Information Collection Means 1-9 measurement value 1-10 branch instruction deleting means 1-11 branch instruction 2-1 branch instruction identifying means 2-2 recording means deleted source program 3-1 measurement value table 3-2 branch instruction identifier 3-3 recording

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 特定の入力データに対するプログラム処
理高速化方式において、 ソースプログラムから分岐命令を識別し、測定値テーブ
ルに記録する測定手段と、 ソースプログラムに前記測定手段を組み込む組み込み手
段と、 前記測定手段組み込み済ソースプログラムから測定用実
行プログラムを作成する実行プログラム生成手段と、 前記測定用実行プログラムに特定のデータを与えて実行
させてプログラム中の個々の分岐命令が実行時に実行し
た分岐の情報を収集する情報収集手段と、 前記情報収集で得た測定値と前記ソースプログラムから
実行されなかった分岐に対して、その分岐と分岐命令を
削除する分岐命令削除手段とから構成されていることを
特徴とするプログラム処理高速化方式。
1. In a method for speeding up program processing for specific input data, measuring means for identifying a branch instruction from a source program and recording it in a measurement value table, assembling means for incorporating the measuring means in the source program, and the measurement. Execution program generating means for creating a measurement execution program from a source program with built-in means, and specific branch data given to the measurement execution program for execution, and information on branches executed at execution by individual branch instructions in the program. Information collecting means for collecting, and a branch instruction deleting means for deleting the branch and branch instruction for the measurement value obtained by the information collecting and the branch not executed from the source program The program processing speedup method.
【請求項2】 請求項1のプログラム処理高速化方式に
おいて、前記測定手段は、分岐命令識別手段と記録手段
とから構成され、前記組み込み手段は前記測定手段をソ
ースプログラムに組み込み手段によって組み込む際に、
分岐命令に対して、分岐命令識別子を付与するととも
に、この分岐命令識別子に対応する測定値欄を前記測定
テーブル内に設け、前記情報収集手段は、前記分岐命令
識別子に対応して設けられた測定値テーブルに各々の分
岐命令識別子に対応した処理の有無の記録を前記測定テ
ーブルの測定値欄に格納することを特徴とするプログラ
ム処理高速化方式。
2. The program processing speed-up system according to claim 1, wherein the measuring means comprises a branch instruction identifying means and a recording means, and the incorporating means incorporates the measuring means into the source program by the incorporating means. ,
A branch instruction identifier is given to a branch instruction, and a measurement value column corresponding to this branch instruction identifier is provided in the measurement table, and the information collecting means is a measurement provided corresponding to the branch instruction identifier. A method for speeding up program processing, characterized in that a record of the presence or absence of processing corresponding to each branch instruction identifier is stored in a value table in a measurement value column of the measurement table.
JP5189799A 1993-07-30 1993-07-30 Program processing accelerating system Pending JPH0744397A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5189799A JPH0744397A (en) 1993-07-30 1993-07-30 Program processing accelerating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5189799A JPH0744397A (en) 1993-07-30 1993-07-30 Program processing accelerating system

Publications (1)

Publication Number Publication Date
JPH0744397A true JPH0744397A (en) 1995-02-14

Family

ID=16247410

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5189799A Pending JPH0744397A (en) 1993-07-30 1993-07-30 Program processing accelerating system

Country Status (1)

Country Link
JP (1) JPH0744397A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008158806A (en) * 2006-12-22 2008-07-10 Matsushita Electric Ind Co Ltd Processor program with multiple processor elements, and method and device for generating the program
JP2013149164A (en) * 2012-01-20 2013-08-01 Hitachi Automotive Systems Ltd Software verification support device, software verification support method, and software verification support program
JP2013156802A (en) * 2012-01-30 2013-08-15 Mitsubishi Electric Corp Module dependency extraction device, module dependency extraction method and program
KR101312546B1 (en) * 2012-03-29 2013-09-30 김남걸 Overcurrent limiting device for power amplifier

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62239236A (en) * 1986-04-10 1987-10-20 Nec Corp Compiler for program
JPH04273533A (en) * 1991-02-28 1992-09-29 Hokkaido Nippon Denki Software Kk In-line expansion system for procedure of translation program
JPH0546404A (en) * 1991-08-09 1993-02-26 Fujitsu Ltd Branch instruction deletion optimizing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62239236A (en) * 1986-04-10 1987-10-20 Nec Corp Compiler for program
JPH04273533A (en) * 1991-02-28 1992-09-29 Hokkaido Nippon Denki Software Kk In-line expansion system for procedure of translation program
JPH0546404A (en) * 1991-08-09 1993-02-26 Fujitsu Ltd Branch instruction deletion optimizing system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008158806A (en) * 2006-12-22 2008-07-10 Matsushita Electric Ind Co Ltd Processor program with multiple processor elements, and method and device for generating the program
JP2013149164A (en) * 2012-01-20 2013-08-01 Hitachi Automotive Systems Ltd Software verification support device, software verification support method, and software verification support program
JP2013156802A (en) * 2012-01-30 2013-08-15 Mitsubishi Electric Corp Module dependency extraction device, module dependency extraction method and program
KR101312546B1 (en) * 2012-03-29 2013-09-30 김남걸 Overcurrent limiting device for power amplifier

Similar Documents

Publication Publication Date Title
US6954747B1 (en) Methods for comparing versions of a program
JP2001166947A (en) Compile processing system
JP3765923B2 (en) HARDWARE SYNTHESIS METHOD, HARDWARE SYNTHESIS DEVICE, AND RECORDING MEDIUM CONTAINING HARDWARE SYNTHESIS PROGRAM
JPH0744397A (en) Program processing accelerating system
US11068463B2 (en) System and method for managing log data
JPH03241439A (en) Test data preparation tool
JP3580394B2 (en) Program conversion device and program conversion method
JPH0895827A (en) Microprogram verifying method
JPH05100866A (en) Compile/link system
JP3613454B2 (en) Compiler device and computer-readable recording medium storing compiler
JPH064299A (en) Optimized object program generating system
JPH05113882A (en) Out-fitted man-machine interface realizing system by intermediate file
JPH0117175B2 (en)
JPH05216669A (en) Restriction propagation system
JPH04266121A (en) Program managing system
JPH02287737A (en) Automatic designing system for test item
KR940015798A (en) How to Configure, Send, and Extract Normalized Command Information Messages Between User Registration Software and Application Software
JPH07152543A (en) Decision table input device
JP2000293410A (en) Profiler
JPH07239868A (en) Simulation device
JPH0553822A (en) Method and device for erasing common partial expressional sentence
JPS63197230A (en) Production system for extraction program
JPH04340628A (en) Fuzzy inference process compile system
JPH04330521A (en) Cross reference list forming system
JPH05204699A (en) Identifier searching system at debugging

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970708