JPH0728629A - Source program tuning system using general purpose editor - Google Patents

Source program tuning system using general purpose editor

Info

Publication number
JPH0728629A
JPH0728629A JP5154845A JP15484593A JPH0728629A JP H0728629 A JPH0728629 A JP H0728629A JP 5154845 A JP5154845 A JP 5154845A JP 15484593 A JP15484593 A JP 15484593A JP H0728629 A JPH0728629 A JP H0728629A
Authority
JP
Japan
Prior art keywords
tuning
source program
information
tuning information
comment
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
JP5154845A
Other languages
Japanese (ja)
Inventor
Toshihiro Tsurugasaki
俊博 鶴ケ崎
Shigemi Yamada
重巳 山田
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5154845A priority Critical patent/JPH0728629A/en
Publication of JPH0728629A publication Critical patent/JPH0728629A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a tuning assistance system which enables tuning operation on a window system, which can not display plural windows at the same time, without using any special editor. CONSTITUTION:The source program of an original source program is outputted to source program parts 51, 53, and 55 and comments of tuning information which is automatically inserted into tuning information parts 52 and 54 are outputted. The command of the tuning information corresponding to DO 2 of the source program 51 is outputted to the tuning information part 52 and the comment corresponding to DO 10 of the source program part 53 is outputted to the tuning information part 54. In case of the information part 54, there is no tuning reference example corresponding to DO 10, so no example is outputted. The comment key word of the comment of the tuning information has no user specification and original source program description format is standard format, so the comment key word of the tuning information is outputted with a standard value.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、高級言語で記述された
ソースプログラムを効率良く実行させる為のチューニン
グ支援に係り、特に、チューニング情報を参照しながら
ソースプログラムの修正を行う処理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a tuning support for efficiently executing a source program written in a high-level language, and more particularly to a processing method for modifying a source program while referring to tuning information.

【0002】[0002]

【従来の技術】従来の技術は、日立クリエイティブステ
ーション 3050 HI−UX/WE HI−UX/
WE2 FORTRAN開発支援システム FORT/
ASSIST/W 手引・操作書 3050−7−42
0−20 第156頁から第158頁の記載のように、
ソースプログラムとチューニング情報を別ウインドゥに
表示させ参照することにより、ソースプログラムのチュ
ーニング用の修正を行っていた。
2. Description of the Related Art The conventional technology is Hitachi Creative Station 3050 HI-UX / WE HI-UX /
WE2 FORTRAN Development Support System FORT /
ASSIST / W Manual / Operation Manual 3050-7-42
0-20 As described on pages 156 to 158,
The source program and the tuning information were displayed in different windows and referenced to modify the source program for tuning.

【0003】[0003]

【発明が解決しようとする課題】上記従来技術は、複数
のウインドゥを同時に表示出来るウインドゥシステムで
のチューニング作業を対象としている為、複数のウイン
ドゥを同時に表示出来ないウインドゥシステムにおいて
チューニング作業を行うには、チューニング情報を表示
しながらソースプログラムを修正することのできる特殊
なエディタが必要であった。
The above-mentioned prior art is intended for tuning work in a window system capable of displaying a plurality of windows at the same time. Therefore, when performing tuning work in a window system in which a plurality of windows cannot be displayed at the same time. , I needed a special editor that could modify the source program while displaying tuning information.

【0004】本発明は、上記問題を解決する為、複数の
ウインドゥを同時に表示出来ないウインドゥシステム
で、特殊なエディタを使用しないで、チューニング作業
を行えるようにするチューニング支援を提供することを
目的とする。
In order to solve the above problems, the present invention has an object to provide a tuning system which can perform a tuning operation without using a special editor in a window system which cannot display a plurality of windows at the same time. To do.

【0005】[0005]

【課題を解決するための手段】上記問題を解決する為
に、原始ソースプログラム中にチューニング情報をコメ
ントとして自動挿入したソースプログラムを出力するこ
とにより、複数のウインドゥを同時に表示出来ないウイ
ンドゥシステムでも、ソースプログラムとチューニング
情報を汎用エディタで同時に参照し、チューニング用の
修正を行えるようにすることで解決する。
[Means for Solving the Problems] In order to solve the above problem, even if a window system cannot display a plurality of windows at the same time by outputting a source program in which tuning information is automatically inserted as a comment in a source program, The problem is solved by referring to the source program and tuning information at the same time with a general-purpose editor, and making corrections for tuning possible.

【0006】[0006]

【作用】チューニング支援は、ソースファイル情報テー
ブルやチューニング情報テーブルを参照して、チューニ
ング情報の挿入判定を行う。
Operation: The tuning support refers to the source file information table or the tuning information table to determine whether to insert tuning information.

【0007】原始ソースプログラムのソースプログラム
を1行づつ入出力しながら、チューニング挿入情報テー
ブルを参照し、当該ソースプログラムのISN(Interna
l Statement Number:内部ステートメント番号)とチュ
ーニング情報テーブル内のチューニング情報挿入ISN
が一致した場合、実行情報、チューニング診断メッセー
ジ、チューニング参考例のチューニング情報のコメント
を出力する。
While the source program of the source program is input and output line by line, the tuning insertion information table is referred to and the ISN (Interna
l Statement Number: Internal statement number) and tuning information insertion ISN in the tuning information table
If the two match, the execution information, tuning diagnostic message, and the tuning information comment of the tuning reference example are output.

【0008】出力するチューニング情報のコメントキー
ワードは、ソースプログラムの記述形式(標準形式と自
由形式)により異なる。また、ユーザ指定により自由な
キーワード指定を行うことが出来る為、ソースプログラ
ム部分とチューニング情報のコメント部分の区別を容易
に行うことが出来る。
The comment keyword of the tuning information to be output differs depending on the description format (standard format or free format) of the source program. Further, since the keyword can be freely specified by the user, the source program part and the comment part of the tuning information can be easily distinguished.

【0009】[0009]

【実施例】以下、本発明の一実施例を図を参照しつつ説
明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0010】図1は、プログラムチューニング作業の進
め方を示す図である。チューニング情報の作成〜1と、
実行情報の取得〜2は、チューニングを行うプログラム
をコンパイル、実行または、シュミレート実行して、チ
ューニング作業〜3で使用する解析情報の生成を行う。
プログラムの性能チェック〜4は、実行情報を参照しな
がら、プログラムの実行性能を確認する。チューニング
対象の選択〜5は、プログラム内のどの部分のループ、
ブロックのチューニングを行うかの選択を行う。プログ
ラムのチューニング〜6は、チューニング診断メッセー
ジやチューニング参考例を検討して、プログラムのチュ
ーニングを行う。チューニング結果の確認〜7は、プロ
グラムの再コンパイル及び、実行を行い、チューニング
修正後の実行結果の確認を行う。本発明は、プログラム
のチューニング〜6に係る。
FIG. 1 is a diagram showing how to proceed with the program tuning work. Creating tuning information ~ 1 and
In the acquisition of execution information-2, a program for tuning is compiled, executed, or simulated, and analysis information used in the tuning work-3 is generated.
The program performance checks 4 to 4 check the program execution performance while referring to the execution information. Tuning target selection ~ 5 is what part of the loop in the program,
Select whether to tune the block. In the program tuning to 6, the program is tuned by examining the tuning diagnostic message and the tuning reference example. In the confirmation of tuning result to 7, the program is recompiled and executed, and the execution result after tuning correction is confirmed. The present invention relates to program tuning-6.

【0011】以下、原始ソースプログラム中にチューニ
ング情報をコメントとして自動挿入し、プログラムチュ
ーニンングを行う詳細な処理を説明する。
A detailed process for automatically inserting tuning information as a comment into a source program and performing program tuning will be described below.

【0012】図2に、ソースファイル情報テーブル〜1
0を示す。当該テーブルは、チューニング情報コメント
を挿入する原始ソースファイルに対応し、チューニング
情報を挿入する原始ソースプログラムのソースファイル
の管理〜11と、自動挿入するチューニング情報を管理
しているチューニング情報テーブルポインタ〜12が設
定されている。
FIG. 2 shows the source file information table-1.
Indicates 0. The table corresponds to a source file for inserting a tuning information comment, manages a source file of a source program for inserting tuning information, and a tuning information table pointer for managing tuning information for automatic insertion-12. Is set.

【0013】図3に、チューニング情報テーブル〜20
を示す。当該テーブルは、原始ソースファイル中に自動
挿入するチューニング情報の数分存在し、チューニング
情報を原始ソースプログラムのどのISNに自動挿入す
るかを管理する挿入情報管理領域〜21と、自動挿入す
るチューニング情報文字列を管理するチューニング情報
テキスト管理領域〜22が設定されている。
FIG. 3 shows a tuning information table-20.
Indicates. This table exists for the number of pieces of tuning information to be automatically inserted in the source file, and the insertion information management area to manage the ISN of the source program to which the tuning information is automatically inserted, and the tuning information to be automatically inserted. Tuning information text management areas to 22 for managing character strings are set.

【0014】図4に、チューニング情報を自動挿入する
処理を示す。ソースプログラムを1行入力〜30し、入
力ソースプログラムがあるかの判定〜31を行う。入力
ソースプログラムがある場合、入力ソースプログラムの
出力〜32を行う。入力したソースプログラムのISN
とチューニング情報テーブルのISNが一致するかの判
定〜33を行う。一致すると、チユーニング情報コメン
トキーワードのユーザ指定があるかの判定〜34を行
い、コメントキーワードのユーザ指定があれば、ユーザ
指定の文字列をチューニング情報のコメントキーワード
として設定〜36し、コメントキーワードを付加したチ
ューニング情報のコメントを出力〜37する。コメント
キーワードのユーザ指定がなければ、ソースプログラム
の記述形式(標準形式と自由形式)に従った標準値の文
字列をチューニング情報のコメントキーワードとして設
定〜35し、コメントキーワードを付加したチューニン
グ情報のコメントを出力〜37する。
FIG. 4 shows a process of automatically inserting tuning information. One line of the source program is input to 30, and it is determined whether there is an input source program to 31. If there is an input source program, output 32 of the input source program is performed. ISN of input source program
And whether the ISNs of the tuning information table match or not is determined to 33. If they match, it is determined whether the tuning information comment keyword is specified by the user ~ 34. If the comment keyword is specified by the user, a character string specified by the user is set as the comment keyword of the tuning information ~ 36, and the comment keyword is added. The comment of the tuning information is output to 37. If the comment keyword is not specified by the user, the standard value character string according to the description format (standard format and free format) of the source program is set as the comment keyword of the tuning information ~ 35, and the comment of the tuning information with the comment keyword added Is output to 37.

【0015】図6に図5の原始ソースプログラム〜40
に対してチューニング情報のコメントを自動挿入したソ
ースプログラム〜50を示す。チューニング情報のコメ
ントを自動挿入したソースプログラム〜50の、ソース
プログラム部〜51、〜53、〜55に、原始ソースプ
ログラム〜40の原始ソースプログラム部〜41、〜4
2、〜43を出力し、チューニング情報部〜52、〜5
4に自動挿入したチューニング情報のコメントを出力す
る。ソースプログラム部〜51のDO 2に対応したチ
ューニング情報のコメントが、チューニング情報部〜5
2に出力される。ソースプログラム部〜53のDO 1
0に対応したチューニング情報のコメントが、チューニ
ング情報部〜54に出力される。チューニング情報部〜
54の場合、DO 10に対応したチューニング参考例
が存在しない為、チューニング参考例は出力されない。
また、チューニング情報のコメントキーワードはユーザ
指定〜34がなく、原始ソースプログラム記述形式が標
準形式〜35である為、チューニング情報のコメントキ
ーワードは標準値(*TF)で出力される。
FIG. 6 shows the source program 40 of FIG.
The source program to 50 in which the comment of the tuning information is automatically inserted is shown. Source program parts to 51, 53, and 55 of the source program to which comments of tuning information are automatically inserted are included in the source program parts to 51, to 53, and 55.
2 to 43 are output, and the tuning information section to 52 and 5
The comment of the tuning information automatically inserted in 4 is output. The comment of the tuning information corresponding to DO 2 in the source program section-51 is shown in the tuning information section-5.
2 is output. Source Program Department ~ 53 DO 1
A comment of tuning information corresponding to 0 is output to the tuning information section to 54. Tuning information section ~
In the case of 54, since there is no tuning reference example corresponding to DO 10, the tuning reference example is not output.
In addition, since the comment keyword of tuning information does not have user designation 34 and the source source program description format is standard format 35, the comment keyword of tuning information is output with a standard value (* TF).

【0016】[0016]

【発明の効果】本発明によれば、自動挿入したチューニ
ング情報コメントとソースプログラムの両方を確認しな
がら、チューニング用の修正を行うことができ、複数の
ウインドゥを同時に表示出来るウインドゥシステムでな
くても、また、チューニング情報を表示しながらソース
プログラムを修正することのできる特殊なエディタがな
くても、プログラムのチューニング作業を行うことがで
きる。
According to the present invention, it is possible to make corrections for tuning while checking both the automatically inserted tuning information comment and the source program, and it is not necessary for the window system to display a plurality of windows simultaneously. Also, the tuning work of the program can be performed without a special editor capable of modifying the source program while displaying the tuning information.

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

【図1】本発明の一実施例によるチューニング作業の進
め方を示す。
FIG. 1 shows how to proceed with a tuning operation according to an embodiment of the present invention.

【図2】本発明の一実施例によるソースファイル情報テ
ーブルを示す。
FIG. 2 shows a source file information table according to an embodiment of the present invention.

【図3】本発明の一実施例によるチューニング情報テー
ブルを示す。
FIG. 3 shows a tuning information table according to an embodiment of the present invention.

【図4】本発明の一実施例によるチューニング情報のコ
メントの自動挿入処理を示す。
FIG. 4 shows a process of automatically inserting a comment of tuning information according to an embodiment of the present invention.

【図5】本発明の一実施例による原始ソースプログラム
例を示す。
FIG. 5 shows an example of a source program according to an embodiment of the present invention.

【図6】本発明の一実施例によるチューニング情報のコ
メントを自動挿入したソースプログラムの出力例を示
す。
FIG. 6 shows an output example of a source program in which a comment of tuning information is automatically inserted according to an embodiment of the present invention.

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

1…チューニング情報の作成、 2…実行情報の取得、 3…チューニング作業、 4…プログラムの性能チェック、 5…チューニング対象の選択、 6…プログラムのチューニング、 7…チューニング結果の確認、 10〜12…ソースファイル情報テーブルの詳細、 20〜22…チューニング情報テーブルの詳細、 30〜37…チューニング情報のコメントの自動挿入処
理の詳細、 40〜43…原始ソースプログラム例の詳細、 50〜55…チューニング情報のコメントを自動挿入し
たソースプログラムの出力例の詳細。
1 ... Creation of tuning information, 2 ... Acquisition of execution information, 3 ... Tuning work, 4 ... Program performance check, 5 ... Tuning target selection, 6 ... Program tuning, 7 ... Tuning result confirmation, 10-12 ... Source file information table details, 20-22 ... Tuning information table details, 30-37 ... Tuning information comment automatic insertion processing details, 40-43 ... Source program example details, 50-55 ... Tuning information Details of the output example of the source program with the comment inserted automatically.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数のウインドゥを同時に表示出来ないウ
インドゥシステムにおいて、ループ回数、実行比率、ベ
クトル化率及び、I/O回数を確認する為の実行情報
と、チューニング対象ループのベクトル化状況を確認す
る為のチューニング診断メッセージと、ベクトルチュー
ニング用のソースプログラムの修正例を確認する為のチ
ューニング参考例というチューニング情報を見ながら、
ソースプログラムのチューニング用の修正を行えるよう
にする為に、原始ソースプログラム中に、チューニング
情報をコメントとして自動挿入することにより、汎用エ
ディタを使用し、ソースプログラムのチューニング作業
を行えるようにすることを特徴とするチューニング方
式。
1. In a window system in which a plurality of windows cannot be displayed simultaneously, execution information for confirming the loop count, execution ratio, vectorization rate, and I / O count, and the vectorization status of the tuning target loop are confirmed. While looking at the tuning diagnostic message for tuning and the tuning information that is a tuning reference example for checking the modification example of the source program for vector tuning,
In order to make the correction for tuning the source program, the tuning information is automatically inserted as a comment in the source program so that the source program can be tuned using a general-purpose editor. A characteristic tuning method.
JP5154845A 1993-06-25 1993-06-25 Source program tuning system using general purpose editor Pending JPH0728629A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5154845A JPH0728629A (en) 1993-06-25 1993-06-25 Source program tuning system using general purpose editor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5154845A JPH0728629A (en) 1993-06-25 1993-06-25 Source program tuning system using general purpose editor

Publications (1)

Publication Number Publication Date
JPH0728629A true JPH0728629A (en) 1995-01-31

Family

ID=15593158

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5154845A Pending JPH0728629A (en) 1993-06-25 1993-06-25 Source program tuning system using general purpose editor

Country Status (1)

Country Link
JP (1) JPH0728629A (en)

Similar Documents

Publication Publication Date Title
US6651240B1 (en) Object-oriented software development support apparatus and development support method
US7617085B2 (en) Program product supporting specification of signals for simulation result viewing
CA2471584C (en) Two tier paste buffer and display
JPH09259153A (en) Device and method for generating batch execution control program
JP2005018114A (en) Program maintenance support device, program maintenance support method, and program
JPH0991338A (en) Parameter input method for verification of logical design
US20050086633A1 (en) Content layers
JPH0728629A (en) Source program tuning system using general purpose editor
JPH08190543A (en) Document processor
JP2820184B2 (en) Load module unit test support device
KR100329991B1 (en) Processing method for preprocessor define using a check box in project manager
JP2908184B2 (en) Text file editing method and apparatus
JPH0319041A (en) Automatic control system for control item
JPH05108372A (en) System for outputting compiler optimization processing content
JPH0358225A (en) File editing system
JPS63284619A (en) Data input processing system
JPH04237365A (en) Difference detecting system and automatic editing system for text processor
JPH09185499A (en) Method and device for generating interactive program
JPH05181661A (en) General purpose menu system for each user
JPH1153411A (en) Circuit diagram editor
JPH04229343A (en) Memory contents display system in interactive debugger
JPH0511989A (en) Parameter analyzing device
JPH05158679A (en) Program text editing device
JPH05158741A (en) Test verification method for computer program
JPH06195331A (en) Word processor