JPH0488427A - Simple execution performance information generation system - Google Patents

Simple execution performance information generation system

Info

Publication number
JPH0488427A
JPH0488427A JP19713290A JP19713290A JPH0488427A JP H0488427 A JPH0488427 A JP H0488427A JP 19713290 A JP19713290 A JP 19713290A JP 19713290 A JP19713290 A JP 19713290A JP H0488427 A JPH0488427 A JP H0488427A
Authority
JP
Japan
Prior art keywords
program
performance information
object code
execution
instruction
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
JP19713290A
Other languages
Japanese (ja)
Inventor
Takao Sato
孝夫 佐藤
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 JP19713290A priority Critical patent/JPH0488427A/en
Publication of JPH0488427A publication Critical patent/JPH0488427A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the trouble of acquiring execution performance information on a program and to improve the performance of the program by providing an object program generation part with CPU performance information, an object code analyzing means, and an object code weighing means. CONSTITUTION:The object code analyzing means 1 after inputting object codes generated by the object program generation part for a language processing program compiling a source program into an object program analyzes the object codes to classify hardware instructions by patterns. Then CPU performance information 2 is retrieved according to respective instruction codes by hardware models which are registered in the object code weighing means 3 and CPU performance information 2, and hardware instructions which are analyzed and classified by the object code analyzing means 1; and the information is weighted by the execution time of object codes to be generated to generate an execution performance information list 4 of respective instructions of the source program. Consequently, the trouble of obtaining the execution performance information on the program is reduced and the performance of the program is improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、計算機システムにおけるプログラムの実行性
能評価に関し、特に、原始プログラムを目的プログラム
に変換する言語処理プログラムの目的プログラム生成部
の性能情報生成方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to the evaluation of program execution performance in a computer system, and in particular, to performance information generation of a target program generation unit of a language processing program that converts a source program into a target program. Regarding the method.

〔従来の技術〕[Conventional technology]

従来の計算機システムにおいて実行性能情報を得るため
には、原始プログラムを目的プログラムに翻訳し、さら
に実行形式に変換したあと、実行形式プログラム中の必
要な点にトラップ命令を埋め込み実際に実行させてトラ
ップ点間の実際のCPU時間を測定しなければならなか
った。また翻訳時に実行性能情報を提供する手段はなか
った。
In order to obtain execution performance information in conventional computer systems, the source program is translated into the target program, and then converted into an executable format, and then trap instructions are embedded at the necessary points in the executable program and executed to trap the program. The actual CPU time between points had to be measured. Furthermore, there was no means to provide execution performance information during translation.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来方式においては、翻訳処理時に実行性能情
報を生成する手段は無く、翻訳処理後実行形式に変換し
実行環境を作成し測定するプログラムの各点にトラップ
命令を埋め込み、実際の実行させてトラップ点からトラ
ップ点までのCPU時間を計測しなければならず、プロ
グラムの実行性能情報取得及び実行性能改善の為に多大
な労力を必要とし効率が悪い。
In the conventional method described above, there is no means to generate execution performance information during translation processing, and after translation processing, the program is converted into an executable format, an execution environment is created, and a trap instruction is embedded at each point in the program to be measured, and the program is actually executed. It is necessary to measure the CPU time from trap point to trap point, which requires a great deal of effort to obtain program execution performance information and improve execution performance, which is inefficient.

また測定できる範囲がトラップ点からトラップ点の間の
みで、原始プログラムの命令単位の測定は非常に難しい
Furthermore, the measurable range is only between the trap points, making it extremely difficult to measure the instruction unit of the source program.

従って本発明の目的は、言語翻訳プログラムの目的プロ
グラム生成部にCPU性能情報、オブジェクトコード解
析手段、オブジェクトコード重み付け手段を設けること
により原始プログラムの翻訳時に原始プログラムの命令
単位に実行性能情報を生成し、翻訳のみで原始プログラ
ムの各命令単位の実行性能情報を提供することにより、
プログラムの実行性能情報の取得の労力を減少させ、プ
ログラムの性能改善の作業効率をあげることにある。
Therefore, an object of the present invention is to generate execution performance information for each instruction of a source program when translating a source program by providing CPU performance information, object code analysis means, and object code weighting means in the target program generation section of a language translation program. , by providing execution performance information for each instruction in the source program using only translation,
The purpose is to reduce the effort required to obtain program execution performance information and increase the efficiency of program performance improvement.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の簡易型実行性能情報生成方式は、原紙プログラ
ムを入力し目的プログラムを生成する言語処理システム
において、生成する目的プログラムを解析しハードウェ
ア命令のバタンの分類するオブジェクトコード解析手段
及び、あらかじめ登録されたハードウェアモデルごとの
各命令コードと命令コードごとのCPUタイムの対応表
からなるCPU性能情報、オブジェクトコード解析手段
で解析/分類されたハードウェア命令からCPtJ性能
情報を検索し、生成するオブジェクトコードの実行時間
の重み付けを行いユーザーの記述した原始プログラムの
命令ごとの実行性能情報リストを生成するオブジェクト
コード重み付け手段を含んで構成される。
The simplified execution performance information generation method of the present invention is provided in a language processing system that inputs a base program and generates a target program. CPU performance information consisting of a correspondence table of each instruction code for each hardware model and CPU time for each instruction code, and an object that searches and generates CPtJ performance information from hardware instructions analyzed and classified by object code analysis means. The object code weighting means weights the execution time of the code and generates a list of execution performance information for each instruction of the source program written by the user.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は、本発明の一実施例の構成を示すブロック図で
ある。第1図において、本実施例の簡易型実行性能情報
生成方式は、原始プログラムを目的プログラムに変換す
る言語処理プログラムの目的プログラム生成部の生成し
たオブジェクトコードを入力後、解析しハードウェア命
令のパタンに分類するオブジェクトコード解析手段1及
び、あらかじめ登録されたハードウェアモデルごとの各
命令コードと命令コードごとのCPUタイムの対応表か
らなるCPU性能情報2、オブジェクトコード解析手段
1で解析/分類されたハードウェア命令からCPU性能
情報2を検索し、生成するオブジェクトコードの実行時
間の重み付けを行いユーザーの記述した原始プログラム
の命令ごとの実行性能情報リスト4を生成するオブジェ
クトコード重み付け手段3を含んで構成される。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In FIG. 1, the simplified execution performance information generation method of this embodiment inputs the object code generated by the target program generation section of the language processing program that converts the source program into the target program, and then analyzes it to determine the pattern of hardware instructions. The object code analysis means 1 classifies and classifies the information into the CPU performance information 2, which consists of a correspondence table of each instruction code for each hardware model and the CPU time for each instruction code registered in advance, and the object code analysis means 1. Comprised of an object code weighting means 3 that searches CPU performance information 2 from hardware instructions, weights the execution time of the generated object code, and generates an execution performance information list 4 for each instruction of the source program written by the user. be done.

第2図は、第1図の処理の流れを示す流れ図である。第
2図において、ステップ21でまず言語処理プログラム
の目的プログラム生成部が生成した目的プログラムを入
力する。ここでは、例として原始プログラムのMOVE
命令が以下の目的プログラムに展開されている場合を考
える。
FIG. 2 is a flowchart showing the flow of the process shown in FIG. In FIG. 2, in step 21, the target program generated by the target program generation section of the language processing program is first input. Here, as an example, the source program MOVE
Consider the case where instructions are expanded to the following target program.

MOVF   A   To   B。MOVF A To B.

LOAD   BRI   ADDR(A)LOAD 
  BH3ADDR(B) LOAD   GRI  LENGTH(B)MVCA
(BRI)   B(BH3,GRI)次にステップ2
2で入力した目的プログラムを分類して解析する。この
例では、 ■LOAD命令 ペースレジスタ指定 ■LOAD命令 ペースレジスタ指定 ■LOAD命令 汎用レジスタ指定 ■MVC命令 メモリ がら メモリ 長さGR指定 に解析される。
LOAD BRI ADDR(A)LOAD
BH3ADDR (B) LOAD GRI LENGTH (B) MVCA
(BRI) B (BH3, GRI) Next step 2
Classify and analyze the target program input in step 2. In this example, it is analyzed as: ■LOAD instruction pace register specification ■LOAD instruction pace register specification ■LOAD instruction general register specification ■MVC instruction memory length GR specification.

次にステップ23で解析した結果からCPU性能情報を
検索して各目的プログラムのCPU実行時間を求める。
Next, in step 23, CPU performance information is retrieved from the analyzed results to determine the CPU execution time of each target program.

この例では、検索の結果以下のように実行時間が検索さ
れたとする。
In this example, assume that the following execution time is found as a result of the search.

■の命令  5 マイクロ 秒 ■の命令  5 マイクロ 秒 ■の命令  3 マイクロ 秒 ■の命令 15 マイクロ 秒 最後にステップ24で実行性能情報としてMOVE命令
が合計 5+5+3+15=28  マイクロ 秒の実
行性能であることを表示する。
■Instruction 5 microseconds ■Instruction 5 microseconds ■instruction 3 microsecond ■instruction 15 microseconds Finally, in step 24, the execution performance information for the MOVE instruction is displayed as the total execution performance of 5+5+3+15=28 microseconds. do.

以上が本実施例の処理の流れの説明である。この処理の
流れから本方式により翻訳時に原始プログラムの命令単
位に実行性能情報を生成することができることがわかる
The above is an explanation of the processing flow of this embodiment. It can be seen from this process flow that execution performance information can be generated for each instruction of a source program during translation using this method.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、言語翻訳プログラムの目的プログ
ラム生成部にCPU性能情報、オブジェクトコード解析
手段、オブジェクトコード重み付け手段を設けることに
より原始プログラムの翻訳時に原始プログラムの命令単
位に実行性能情報を生成し、翻訳のみで原始プログラム
の各命令単位の実行性能情報を提供することにより、プ
ログラムの実行性能情報の取得の労力を減少させ、プロ
グラムの性能改善の作業効率をあげることが出来る。
As explained above, by providing CPU performance information, object code analysis means, and object code weighting means in the target program generation section of the language translation program, execution performance information is generated for each instruction of the source program during translation of the source program. By providing execution performance information for each instruction of a source program through translation alone, the effort required to obtain program execution performance information can be reduced and the efficiency of program performance improvement can be increased.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は第1図の動作を示すフローチャートである。 1・・・オブジェクトコード解析手段、2・・・CPU
性能情報、3・・・オブジェクトコード重み付け手段、
4・・・実行性能情報リスト。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 2 is a flowchart showing the operation of FIG. 1. 1...Object code analysis means, 2...CPU
Performance information, 3... object code weighting means,
4... Execution performance information list.

Claims (1)

【特許請求の範囲】[Claims]  原紙プログラムを入力し目的プログラムを生成する言
語処理システムにおいて、生成する目的プログラムを解
析しハードウェア命令のパタンに分類するオブジェクト
コード解析手段及び、あらかじめ登録されたハードウェ
アモデルごとの各命令コードと命令コードごとのCPU
タイムの対応表からなるCPU性能情報、オブジェクト
コード解析手段で解析/分類されたハードウェア命令か
らCPU性能情報を検索し、生成するオブジェクトコー
ドの実行時間の重み付けを行いユーザーの記述した原始
プログラムの命令ごとの実行性能情報リストを生成する
オブジェクトコード重み付け手段を含むことにより、原
始プログラムの翻訳時に実行性能情報を表示することを
特徴とする簡易型
In a language processing system that inputs a source program and generates a target program, an object code analysis means that analyzes the target program to be generated and classifies it into hardware instruction patterns, and each instruction code and instruction for each hardware model registered in advance. CPU per code
The CPU performance information is searched from the time correspondence table and the hardware instructions analyzed/classified by the object code analysis means, and the execution time of the generated object code is weighted to determine the instructions of the source program written by the user. A simple type that is characterized by displaying execution performance information during translation of a source program by including object code weighting means that generates an execution performance information list for each
JP19713290A 1990-07-25 1990-07-25 Simple execution performance information generation system Pending JPH0488427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19713290A JPH0488427A (en) 1990-07-25 1990-07-25 Simple execution performance information generation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19713290A JPH0488427A (en) 1990-07-25 1990-07-25 Simple execution performance information generation system

Publications (1)

Publication Number Publication Date
JPH0488427A true JPH0488427A (en) 1992-03-23

Family

ID=16369287

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19713290A Pending JPH0488427A (en) 1990-07-25 1990-07-25 Simple execution performance information generation system

Country Status (1)

Country Link
JP (1) JPH0488427A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013140513A (en) * 2012-01-05 2013-07-18 Fuji Electric Co Ltd Embedded apparatus software generation support device, method and program
CN112732361A (en) * 2021-01-18 2021-04-30 龙芯中科技术股份有限公司 Function implementation method, device and equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013140513A (en) * 2012-01-05 2013-07-18 Fuji Electric Co Ltd Embedded apparatus software generation support device, method and program
CN112732361A (en) * 2021-01-18 2021-04-30 龙芯中科技术股份有限公司 Function implementation method, device and equipment
CN112732361B (en) * 2021-01-18 2023-05-16 龙芯中科技术股份有限公司 Function realization method, device and equipment

Similar Documents

Publication Publication Date Title
JPH08202545A (en) Object-oriented system and method for generation of target language code
JP2005513841A5 (en)
WO2008038389A1 (en) Program performance analyzing apparatus
JPH0488427A (en) Simple execution performance information generation system
JPH1040112A (en) Dynamic information utilization type program optimizing device
JP2751977B2 (en) Dynamic analysis information prediction calculation method
JP5514682B2 (en) Batch processing program analysis method and apparatus
JPH08180094A (en) Architecture simulator
JP2554169B2 (en) Relative Rank Analysis Method for Data Driven Processor
JP3208300B2 (en) Method of extracting use form of physical entity in program and related extraction method
JP4371000B2 (en) IDL compiling device, IDL compiling method, and IDL compiler
JP2008015963A (en) Compiler
JPH05224908A (en) Program production system
JPH02247734A (en) Optimizing system for accessing input/output procedure
JPH03116241A (en) Compiler
JP2000293410A (en) Profiler
JPH04143830A (en) Development supporting system for software
JPH0628405A (en) User definition procedure analyzer of extensible data base
JP2008123343A (en) Software differential measurement device, software differential measurement program, and recording medium recording it
JPH04344535A (en) Developing device for loop
JPH04256137A (en) Evaluation method for computer system performance
JPH0561687A (en) Processing system for compiler
JPH07192034A (en) Interpreter type simulation method
JPH031238A (en) Compiler for information processor
JP2002288007A (en) Simulation analysis supporting device and program