JPH064299A - Optimized object program generating system - Google Patents

Optimized object program generating system

Info

Publication number
JPH064299A
JPH064299A JP4165770A JP16577092A JPH064299A JP H064299 A JPH064299 A JP H064299A JP 4165770 A JP4165770 A JP 4165770A JP 16577092 A JP16577092 A JP 16577092A JP H064299 A JPH064299 A JP H064299A
Authority
JP
Japan
Prior art keywords
program
execution
object program
execution information
dynamic
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.)
Withdrawn
Application number
JP4165770A
Other languages
Japanese (ja)
Inventor
Jiyoutarou Arai
城太郎 新井
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 Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP4165770A priority Critical patent/JPH064299A/en
Publication of JPH064299A publication Critical patent/JPH064299A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To generate an object program which executes is the speed is increased in an object program generation of a language processing program. CONSTITUTION:A language processing program 2 is provided with a program execution information acquiring object generating means 3 which generates an object program for acquisition of required dynamic execution condition data, and an object program 4 for execution information acquisition generated by this means 3 is actually executed to store execution information of the program in a dynamic execution condition data recorder 5. The language processing program 2 is provided with an optimum object generating means 10 which generates an optimum object program 11 based on execution information of the program stored in the dynamic execution condition data recorder 5. Thus, the optimum object program based on dynamic analysis for actual execution of the program is generated.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は最適化オブジェクトプロ
グラム生成方式、特にコンピュータの言語処理プログラ
ムにおける最適化オブジェクトプログラム生成方式に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an optimized object program generation method, and more particularly to an optimized object program generation method in a computer language processing program.

【0002】[0002]

【従来の技術】従来、この種の最適化オブジェクトプロ
グラム生成方式は、プログラムの静的解析により最適化
オブジェクトプログラムを生成するようになっている。
2. Description of the Related Art Conventionally, this type of optimized object program generation method is designed to generate an optimized object program by static analysis of the program.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の最適化
オブジェクトプログラム生成方式では、プログラムの動
的な実行状況に基づいた最適なレジスタの割付けや多岐
分岐命令の順番の最適化が困難であるという問題点があ
る。
According to the above-mentioned conventional optimized object program generation method, it is difficult to optimize the allocation of registers and the optimization of the order of the multi-branch branch instructions based on the dynamic execution status of the program. There is a problem.

【0004】[0004]

【課題を解決するための手段】本発明の最適化オブジェ
クトプログラム生成方式は、言語処理プログラムによる
最適化オブジェクトプログラム生成方式において、実行
時にプログラム実行情報を動的実行状況データ記録装置
に記録するオブジェクトプログラムを生成するプログラ
ム実行情報取得オブジェクト生成手段と、このプログラ
ム実行情報取得オブジェクト生成手段により生成された
オブジェクトプログラムによって実行し、前記実行状況
データ記録装置から得た実行状況データを入力して、そ
のプログラムの実行情報から頻度の多い命令に対して処
理ステップおよびデータ移動時間が少なくなるようオブ
ジェクトプログラムを生成する最適オブジェクト生成手
段とを備えることにより構成される。
An optimized object program generation method of the present invention is an object program for recording program execution information in a dynamic execution status data recording device at the time of execution in the optimized object program generation method by a language processing program. By executing the program execution information acquisition object generating means and the object program generated by the program execution information acquisition object generating means, inputting the execution situation data obtained from the execution situation data recording device, and executing the program It is configured by including optimal object generating means for generating an object program from the execution information so as to reduce the processing steps and the data movement time with respect to frequently used instructions.

【0005】[0005]

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

【0006】図1は本発明の一実施例の構成図である。
図1の実施例の言語処理プログラム2は、ソースプログ
ラム1を入力し、構文/意味解析を行い、言語処理プロ
グラム2に設けたプログラム実行情報取得オブジェクト
生成手段3により、通常の実行オブジェクトプログラム
の中にプログラム実行情報を取得するためのオブジェク
トプログラムを組込んだ実行情報取得用オブジェクトプ
ログラム4を出力する。一方、この実行情報取得用オブ
ジェクトプログラム4を実行したときに出力される実行
情報を記録する動的実行状況データ記録装置5に対する
実行情報取得のためのフォーマッティングと初期化とを
行うオブジェクトプログラムを作成する。次にリンカ6
によって実行に必要なルーチンをリンクし、実行情報取
得用ロードモジュール7を作成する。次のこの実行情報
取得用ロードモジュール7を実行させ、実行に必要なフ
ァイル9をアクセスしながら、実際のプログラムを実行
するとともに、実行情報を動的実行状況データ記録装置
5に更新累積出力する。最後にもう1度、言語処理プロ
グラム2を起動し、言語処理プログラム2に設けた動的
オブジェクト生成手段10に動的実行状況データ記録装
置5によって得られた実行情報を入力して、動的実行状
況データに基づいたオブジェクトの最適化を行い、最適
なオブジェクトプログラム11を生成する。
FIG. 1 is a block diagram of an embodiment of the present invention.
The language processing program 2 of the embodiment shown in FIG. 1 receives the source program 1, performs syntax / semantic analysis, and uses the program execution information acquisition object generation means 3 provided in the language processing program 2 to execute a normal execution object program. The execution information acquisition object program 4 incorporating the object program for acquiring the program execution information is output. On the other hand, an object program for performing formatting and initialization for acquisition of execution information is created for the dynamic execution status data recording device 5 which records execution information output when the execution information acquisition object program 4 is executed. . Next Linker 6
By linking the routines required for execution, the execution information acquisition load module 7 is created. Next, the execution information acquisition load module 7 is executed, the actual program is executed while accessing the file 9 required for execution, and the execution information is updated and accumulated and output to the dynamic execution status data recording device 5. Finally, the language processing program 2 is activated again, and the execution information obtained by the dynamic execution status data recording device 5 is input to the dynamic object generation means 10 provided in the language processing program 2 to perform dynamic execution. The object is optimized based on the situation data, and the optimum object program 11 is generated.

【0007】最適オブジェクト生成手段10では、動的
実行状況データ記録装置5に記録された実行情報の中で
頻度の高い命令に対して単純に動作が行なえるようレジ
スタ割付や命令順序の変更を行って最適化を計る。例え
ばソースプログラム中の全データ名標の参照/設定の動
的回数から最も使用頻度の多い名標に固定的にレジスタ
を割当て、また、ソースプログラム中の多岐分岐命令の
動的な条件成立の回数から速やかに判断がつくようにオ
ブジェクト生成の順序を変更して最適オブジェクトの生
成を行なう。
In the optimum object generating means 10, register allocation and instruction order change are performed so that an operation having a high frequency in the execution information recorded in the dynamic execution status data recording device 5 can be simply operated. And measure optimization. For example, from the dynamic number of reference / setting of all data names in the source program, fixed allocation of registers to the most frequently used names, and the number of times the dynamic conditions of the multi-branch branch instruction in the source program are satisfied The optimal object is generated by changing the order of object generation so that the determination can be made quickly.

【0008】なお動的実行状況データ記録装置5には磁
気ディスク,フロッピィディスク,光ディスク装置が使
用される。
A magnetic disk, floppy disk, or optical disk device is used as the dynamic execution status data recording device 5.

【0009】[0009]

【発明の効果】以上説明したように本発明は、実際にオ
ブジェクトプログラムを実行させて得た動的な実行状況
に基づいて、オブジェクトプログラムを修正・生成して
いるので、ソースプログラムの静的解析だけのオブジェ
クトプログラム生成より最適なオブジェクトプログラム
の生成ができるという効果がある。
As described above, according to the present invention, the object program is corrected / generated based on the dynamic execution status obtained by actually executing the object program. Therefore, the static analysis of the source program is performed. This has an effect that an optimal object program can be generated as compared with the simple object program generation.

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

【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

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

1 ソースプログラム 2 言語処理プログラム 3 プログラム実行情報取得オブジェクト生成手段 4 実行情報取得用オブジェクトプログラム 5 動的実行状況データ記録手段 6 リンカ 7 実行情報取得用ロードモジュール 8 実行情報取得用プログラムの実行 9 実行に必要なファイル類 10 最適オブジェクト生成手段 11 最適なオブジェクトプログラム 1 Source Program 2 Language Processing Program 3 Program Execution Information Acquisition Object Generation Means 4 Execution Information Acquisition Object Program 5 Dynamic Execution Status Data Recording Means 6 Linker 7 Execution Information Acquisition Load Module 8 Execution Information Acquisition Program Execution 9 Execution Necessary files 10 Optimal object generation means 11 Optimal object program

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 言語処理プログラムによる最適化オブジ
ェクトプログラム生成方式において、実行時にプログラ
ム実行情報を動的実行状況データ記録装置に記録するオ
ブジェクトプログラムを生成するプログラム実行情報取
得オブジェクト生成手段と、このプログラム実行情報取
得オブジェクト生成手段により生成されたオブジェクト
プログラムによって実行し、前記実行状況データ記録装
置から得た実行状況データを入力して、そのプログラム
の実行情報から頻度の多い命令に対して処理ステップお
よびデータ移動時間が少なくなるようオブジェクトプロ
グラムを生成する最適オブジェクト生成手段とを備える
ことを特徴とする最適化オブジェクトプログラム生成方
式。
1. In an optimized object program generation method using a language processing program, program execution information acquisition object generation means for generating an object program for recording program execution information in a dynamic execution status data recording device at the time of execution, and this program execution. Execution by the object program generated by the information acquisition object generation means, inputting the execution status data obtained from the execution status data recording device, and processing steps and data movement for frequently executed instructions from the execution information of the program An optimized object program generation method, comprising: an optimum object generation means for generating an object program so as to reduce the time.
JP4165770A 1992-06-24 1992-06-24 Optimized object program generating system Withdrawn JPH064299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4165770A JPH064299A (en) 1992-06-24 1992-06-24 Optimized object program generating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4165770A JPH064299A (en) 1992-06-24 1992-06-24 Optimized object program generating system

Publications (1)

Publication Number Publication Date
JPH064299A true JPH064299A (en) 1994-01-14

Family

ID=15818710

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4165770A Withdrawn JPH064299A (en) 1992-06-24 1992-06-24 Optimized object program generating system

Country Status (1)

Country Link
JP (1) JPH064299A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000003322A1 (en) * 1998-07-10 2000-01-20 Sony Corporation Method and apparatus for compiling
CN104066864A (en) * 2012-01-23 2014-09-24 杰富意钢铁株式会社 Alloyed hot-dip zinc-coated steel sheet

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000003322A1 (en) * 1998-07-10 2000-01-20 Sony Corporation Method and apparatus for compiling
CN104066864A (en) * 2012-01-23 2014-09-24 杰富意钢铁株式会社 Alloyed hot-dip zinc-coated steel sheet

Similar Documents

Publication Publication Date Title
JP2001166947A (en) Compile processing system
JP3380390B2 (en) Debug information display device
JPS6047606B2 (en) program input device
JPH064299A (en) Optimized object program generating system
EP2587380B1 (en) Runtime environment and method for non-invasive monitoring of software applications
JPH09311882A (en) Logic circuit verification supporting device
JP3323147B2 (en) Compiling device, compiling method, and recording medium recording compiler program
JPH0744397A (en) Program processing accelerating system
JPH11154093A (en) Program compiler and storage medium recording compiler program
JP3018783B2 (en) Compilation method
KR20020021083A (en) System for generating optimized computer data field conversion routines
JPH11327887A (en) Compiler system with automatic parts converting function and recording medium
JP2000057011A (en) Method for recording execution history with argument information of function in execution module and recording medium therefor
JPH02201553A (en) System for analyzing program by row number designation
JPH04273328A (en) Generation system for cross-reference list
JPH03139719A (en) Installation verification system for program
JP2001084136A (en) System and method for preparing test specification
JPH0667940A (en) System operation information editing system
JPH11149489A (en) Simulation system
JPH04273326A (en) Data control system
JPH0267636A (en) Program execution procedure file converting system
JPH02304627A (en) Record positioning system
JP2000267901A (en) Software execution system
JPH05313909A (en) Compiler system containing intermediate code line evolving function
JP2001331312A (en) System for acquiring related information among plural programs

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990831