JPS616722A - Method for calculating execution cost of sentence - Google Patents
Method for calculating execution cost of sentenceInfo
- Publication number
- JPS616722A JPS616722A JP59128186A JP12818684A JPS616722A JP S616722 A JPS616722 A JP S616722A JP 59128186 A JP59128186 A JP 59128186A JP 12818684 A JP12818684 A JP 12818684A JP S616722 A JPS616722 A JP S616722A
- Authority
- JP
- Japan
- Prior art keywords
- cost
- execution
- execution cost
- object list
- 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.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
- Devices For Executing Special Programs (AREA)
- Document Processing Apparatus (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、データ処理システムにて実行されるプログラ
ムの解析を行う上で、利用される文の実行費用の計算方
式に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for calculating the execution cost of a statement used in analyzing a program executed in a data processing system.
データ処理システムを効率よく使用することがデータを
処理する上で必要であると共に、この運用効率も作成さ
れるプログラムによって種々に変化する。従って、デー
タ処理装置の運用効率を調査するために、運用プログラ
ムを解析しプログラム中の費用のかかる個所を見い出す
ことが必要となる。解析によって見い出された費用から
効率のよいプログラムの改修を行う。Efficient use of a data processing system is necessary for processing data, and this operational efficiency also varies depending on the program being created. Therefore, in order to investigate the operational efficiency of a data processing device, it is necessary to analyze the operational program and find out the expensive parts of the program. Modify the program more efficiently using the costs found through analysis.
以上のプログラム解析のための文の実行費用を算出する
方法として、第2図に示すように行っている。即ち、文
単位の費用を格納するテーブル1を検索部2が検索して
、該当する文、例えばLEADを実行すると費用100
、REIAINDを実行すると費用10を引出して実
行回数との積を取り総和を演算部3にて行って、文単位
の総和によってプログラムの総実行費用を算出する。こ
の文単位の費用は、従来大体の処理ステップ数を基準と
して設定されている。The method of calculating the execution cost of a statement for program analysis is as shown in FIG. 2. That is, when the search unit 2 searches the table 1 that stores costs for each sentence and executes a corresponding sentence, for example LEAD, the cost is 100.
, REIAIND is executed, the cost 10 is extracted, the product is multiplied by the number of executions, the total sum is performed in the arithmetic unit 3, and the total execution cost of the program is calculated by the sum of each statement. This cost per sentence has conventionally been set based on the approximate number of processing steps.
上記の計算方式では、実際に実行される機械命令よりコ
スト値を見積っていないため、文単位の費用が大まかで
あり、正確な費用の計算が出来ないこととなる。例えば
、WRITE文で処理を行うと出力の多少にかかわらず
同一の費用となってしまう。この実行費用の計算方式で
は、プログラムのチューニング、特に大型プログラムの
解析に支障を来す。In the above calculation method, since the cost value is not estimated from the machine instruction actually executed, the cost per sentence is approximate, and accurate cost calculation is not possible. For example, if processing is performed using a WRITE statement, the cost will be the same regardless of the amount of output. This execution cost calculation method poses a problem in program tuning, especially in analyzing large programs.
したがって、プログラム解析で精度の高い文の実行費用
の計算方式が要望されている。Therefore, there is a need for a highly accurate method for calculating statement execution costs in program analysis.
本発明は、上記問題点を解消することを目的とし、精度
の高い文の実行費用計算方式を提供するものである。そ
の手段を次に示す。1文当たりの費用と文の実行回数と
から実行費用の計算を行うデータ処理装置システムにお
いて、前記データ処理装置にオブジェクトリストを付設
する。前記オブジェクトリストには、文ごとに実際に実
行される機械命令列があり1、該オブジェクトリストに
基づいて一文当りの費用を見積って文の実行費用を算出
する。The present invention aims to solve the above problems and provides a highly accurate statement execution cost calculation method. The means for doing so are shown below. In a data processing device system that calculates an execution cost from the cost per sentence and the number of times a statement is executed, an object list is attached to the data processing device. The object list includes a sequence of machine instructions that are actually executed for each sentence1, and the cost per sentence is estimated based on the object list to calculate the execution cost of the sentence.
データ処理装置にオブジェクトリストを付設し、このオ
ブジェクトリストに命令単位を表形式に記載して、この
オブジェクトリストに基づいて文の実行費用を計算する
のである。An object list is attached to the data processing device, instruction units are written in a table format in this object list, and the execution cost of a statement is calculated based on this object list.
以下、図面を参照して本発明の実施例を詳細に説明する
。Embodiments of the present invention will be described in detail below with reference to the drawings.
第1FI!Jに本発明の一実施例の要部ブロック図とし
て示す。全図を通じて同一個所は同符号を用いる。デー
タ処理語W4には、信号判定部41が設けて有り、此の
信号判定部は実行費用算定信号によって作動し、テーブ
ル制御部42を作動させる。テーブル作動部42はオブ
ジェクトプログラム44を検索してオブジェクトプログ
ラムに対応する命令単位をオブジェクトリスト45に表
形式に格納する。First FI! FIG. 2 is a block diagram of a main part of an embodiment of the present invention. The same numbers are used for the same parts throughout the figures. The data processing word W4 is provided with a signal determining section 41, and this signal determining section is activated by the execution cost calculation signal to operate the table control section 42. The table operating unit 42 searches the object program 44 and stores instruction units corresponding to the object program in an object list 45 in a table format.
例えば、第1図に示すようにL(LOAD) 1.
A ・・・・のように格納する。実行に伴って、この
オブジェクトリスト45に基づいて演算部3は、命令単
位格納部43から該当する命令単位の費用とオブジェク
トリスト45の命令単位とから実行費用の計算を行うの
である。なお、上記した命令単位の費用は変更可能であ
ることは云うまでもない。For example, as shown in FIG. 1, L (LOAD) 1.
A: Store like... Upon execution, the calculation unit 3 calculates the execution cost based on the object list 45 from the cost of the corresponding instruction unit from the instruction unit storage unit 43 and the instruction unit of the object list 45. It goes without saying that the above-mentioned cost per instruction can be changed.
以上説明したように本発明によれば、−文単位毎の費用
が実際に実行される機械命令列より見積られるため、解
析結果が精度の高いものとなり、プログラムをチューニ
ングする上で効果の高いものとなる。As explained above, according to the present invention, - Since the cost for each statement is estimated from the sequence of machine instructions actually executed, the analysis results are highly accurate, which is highly effective for program tuning. becomes.
第1図は本発明の一実施例の要部ブロック図、第2図は
従来の実行費用計算を説明するためのブロック図である
。
図において、3は演算部、4はデータ処理装置、44は
オブジェクトプログラム、45はオブジェクトリストを
それぞれ示す。
筆 1tl1
第2−FIG. 1 is a block diagram of a main part of an embodiment of the present invention, and FIG. 2 is a block diagram for explaining conventional execution cost calculation. In the figure, 3 represents a calculation unit, 4 represents a data processing device, 44 represents an object program, and 45 represents an object list. Brush 1tl1 2nd-
Claims (1)
を行うデータ処理装置システムにおいて、前記データ処
理装置にオブジェクトリストを付設し、コンパイラを呼
び出して前記オブジェクトリストに命令単位を表形式に
記載する機能を備え、該オブジェクトリストに基づいて
文の実行費用を算出することを特徴とする文の実行費用
の計算方式。In a data processing device system that calculates an execution cost from the cost per statement and the number of times a statement is executed, an object list is attached to the data processing device, a compiler is called, and instruction units are written in the object list in a table format. 1. A statement execution cost calculation method, characterized in that the statement execution cost is calculated based on the object list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59128186A JPS616722A (en) | 1984-06-20 | 1984-06-20 | Method for calculating execution cost of sentence |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59128186A JPS616722A (en) | 1984-06-20 | 1984-06-20 | Method for calculating execution cost of sentence |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS616722A true JPS616722A (en) | 1986-01-13 |
JPH0344330B2 JPH0344330B2 (en) | 1991-07-05 |
Family
ID=14978564
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP59128186A Granted JPS616722A (en) | 1984-06-20 | 1984-06-20 | Method for calculating execution cost of sentence |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS616722A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62165245A (en) * | 1986-01-17 | 1987-07-21 | Fujitsu Ltd | System for evaluating cost of program |
-
1984
- 1984-06-20 JP JP59128186A patent/JPS616722A/en active Granted
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62165245A (en) * | 1986-01-17 | 1987-07-21 | Fujitsu Ltd | System for evaluating cost of program |
Also Published As
Publication number | Publication date |
---|---|
JPH0344330B2 (en) | 1991-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
MacDougall | Instruction-level program and processor modeling | |
JPS616722A (en) | Method for calculating execution cost of sentence | |
JPH01118931A (en) | Program conversion system | |
JPH0887417A (en) | Compiler device | |
JP3910831B2 (en) | Program development support device, recording medium, and program | |
JPS63289654A (en) | Program branching instruction monitoring system | |
Huang et al. | Balancing reuse opportunities and performance gains with subblock value reuse | |
JP2623554B2 (en) | Dynamic Vector Diagnosis Method for Vector Computer | |
JPS6042968B2 (en) | information processing equipment | |
JPH05127945A (en) | Program execution situation analysis system | |
JPS5971542A (en) | Arithmetic processor | |
JPS62189539A (en) | System for evaluating performance of related data base managing system | |
JPH06139105A (en) | Device for tracing software | |
JPS6373335A (en) | Information processor | |
JP2003316611A (en) | Program performance analysis method, execution device therefor and processing program therefor | |
JPH08305579A (en) | Compiler processing system | |
JPS62216050A (en) | Measurement processing system for executing cpu time for program unit | |
JPH081608B2 (en) | Program execution analysis tool | |
JPH0193826A (en) | System for counting dynamic step of high grade language | |
JPH03167641A (en) | Analyzing system for performance of program source | |
JPS6391755A (en) | Memory dividing system based on estimation of quantity of stack usage | |
JPH0553782A (en) | System for obtaining dynamic characteristic analysis information of specified part | |
JPH0468446A (en) | Debugging supporting device | |
JPH0250730A (en) | Language converting system based upon common machine word | |
JPH03144835A (en) | Calculation system for execution arithmetic number perprogram unit time |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EXPY | Cancellation because of completion of term |