JPH01292526A - Cooperative editing system for program - Google Patents

Cooperative editing system for program

Info

Publication number
JPH01292526A
JPH01292526A JP63123079A JP12307988A JPH01292526A JP H01292526 A JPH01292526 A JP H01292526A JP 63123079 A JP63123079 A JP 63123079A JP 12307988 A JP12307988 A JP 12307988A JP H01292526 A JPH01292526 A JP H01292526A
Authority
JP
Japan
Prior art keywords
program
libraries
library
order
editing
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
JP63123079A
Other languages
Japanese (ja)
Inventor
Hideo Kikutake
菊竹 秀夫
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP63123079A priority Critical patent/JPH01292526A/en
Publication of JPH01292526A publication Critical patent/JPH01292526A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To perform a cooperative editing job at a high speed by providing a reference frequency table showing the reference degrees of libraries for the past cooperative editing jobs of the same user and retrieving the libraries based on said table in the order of higher reference frequencies when the reference is given to the libraries. CONSTITUTION:When a system is produced in an initial state, the plural general object library names defined by a system controller are registered into a register table 45A for object library names. Each user can optionally add the library names to the table 45A and also change these names. In this case, the corresponding reference frequencies 45B are all set at '0' as the initial values. When a cooperative editing program 2 is started, the reference is given to the object libraries in the order of registration of the table 45A and the reference frequency is counted by by '1'. When the due processing is through, the libraries of the table 45A are totally rearranged in the order of reference frequencies. Hereafter the desired object libraries are retrieved in the order of higher reference frequencies.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は電子計算機におけるプログラムの連繋編集方
式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] This invention relates to a method for linked editing of programs in electronic computers.

〔従来の技術〕[Conventional technology]

第3図はコンパイラがオブジェクトライブラリ等を参照
しつつソースプログラムから実行可能なエグゼクティブ
プログラムを作成して行〈従来のプログラムの連繋編集
方式の構成図である。
FIG. 3 is a block diagram of a conventional program link editing system in which a compiler creates an executable executive program from a source program while referring to an object library and the like.

図において、1はエディタを用いて作成されたソースプ
ログラム、2はソースプログラムのコンパイルとリンク
を行う連繋編集プログラム、3は連繋編集された結果と
してのエグゼクティブプログラム、4はオブジェクトラ
イブラリ41、マクロ定義ライブラリ42、インクルー
トファイルライブラリ43といったプログラムライブラ
リを格納しているライブラリ格納メモリである。
In the figure, 1 is a source program created using an editor, 2 is a linked editing program that compiles and links the source program, 3 is an executive program as a result of linked editing, 4 is an object library 41, a macro definition library 42, a library storage memory that stores program libraries such as an include file library 43;

次に動作について説明する。Next, the operation will be explained.

連繋編集プログラム2はソースプログラム1をコンパイ
ルしたり、リンクする時、ソースプログラム1に出て来
るマクロ定義文、インクルート定義文に基づき、ライブ
ラリ格納メモリ4内の各マクロ定義ライブラリ42やイ
ンクルートファイルライブラリ43を検索し、目的とす
るシンボルを捜し出してコンパイルを行う。
When compiling or linking the source program 1, the linked editing program 2 edits each macro definition library 42 and include file in the library storage memory 4 based on the macro definition statements and include definition statements that appear in the source program 1. The library 43 is searched, a target symbol is found, and compilation is performed.

更にオブジェクトライブラリ41を検索し、目的とする
オブジェクトモジュールを捜し出し、すンクを行い実行
可能な工、グゼクティブプログラム3を作成する。この
時、目的とするオブジェクトモジュールやシンボルの検
索はシステムで一意的にあるいはユーザ毎にユーザが定
義した順序に従って行う。
Furthermore, the object library 41 is searched, a target object module is found, and an executable executive program 3 is created by searching. At this time, the search for the target object module or symbol is performed uniquely in the system or according to the order defined by the user for each user.

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

従来のプログラムの連繋編集方式は以上のように行われ
ていたので、連繋編集プログラムは目的とするオブジェ
クトモジュールやシンボルを捜し出すために無駄なオブ
ジェクトライブラリを探索しまわり、結果としてディス
クのアクセス回数が多くなり処理時間が遅くなるという
問題点があった。
The conventional linked editing method for programs was performed as described above, so the linked editing program searched the object library in vain to find the desired object module or symbol, resulting in a large number of disk accesses. There was a problem that the processing time was slow.

この発明は上記のような問題点を解消するためになされ
たもので、従来の方式に比べ確率的に高速に処理可能な
プログラムの連繋編集方式を得ることを目的とする。
The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide a program link editing method that can be processed more probabilistically and faster than conventional methods.

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

この発明に係るプログラムの連繋編集方式は、同一ユー
ザの過去の連繋編集時のライブラリの参照度合を示す参
照回数テーブル45を設け、ライブラリの参照を行う時
、上記参照回数テーブル45に基づき過去に参照回数の
多かったライブラリから順番に検索して行くことを特徴
とするものである。
The program linked editing method according to the present invention is provided with a reference number table 45 that indicates the degree of reference to the library during past linked editing by the same user, and when referring to the library, the reference number table 45 is used to refer to the reference number table 45. The feature is that the search is performed in order from the libraries that have been searched the most times.

〔作用〕[Effect]

この発明における参照回数テブル45は同一ユーザのラ
イブラリの参照度合を示している。
The reference count table 45 in this invention shows the reference degree of the library by the same user.

この参照回数テーブル45は同一ユーザがプログラムの
連繋編集を行う都度、新しく更新される。
This reference count table 45 is updated each time the same user performs linked editing of a program.

そして同一ユーザがプログラムの連繋編集を行う時、−
上記参照回数テーブルを参照し、過去に参照回数の多い
ものから順番に検索を行う。
And when the same user performs linked editing of programs, -
The above-mentioned reference number table is referred to, and the search is performed in descending order of the number of references in the past.

〔発明の実施例〕[Embodiments of the invention]

以下、この発明の一実施例を図について説明する。なお
、従来技術と同一の構、成要素については同一番号を付
してその説明を省略する。
An embodiment of the present invention will be described below with reference to the drawings. Note that the same configurations and components as those in the prior art are given the same numbers and their explanations will be omitted.

第1図はこの発明の一実施例を示す構成図で、図におい
て、45は同一ユーザの過去の連繋編集時のライブラリ
の参照度合を示す参照回数テーブルである。
FIG. 1 is a block diagram showing an embodiment of the present invention, and in the figure, reference numeral 45 is a reference count table showing the degree of library reference during past linked editing by the same user.

また第2図は上記参照回数テーブル45の具体的な内容
を示す図で、図において45Aがオブジェクトライブラ
リの登録表、45Bが各オブジェクトライブラリ名に対
応するユーザの参照回数である。
FIG. 2 is a diagram showing specific contents of the reference count table 45. In the figure, 45A is the object library registration table, and 45B is the reference count by the user corresponding to each object library name.

次に動作について説明する。Next, the operation will be explained.

まず初期状態において、システム生成時、オブジェクト
ライブラリの名前の登録表4.5Aにはシステム管理者
の定義した一意的な複数個のオブジェクトライブラリ名
が登録され、ユーザが各自でこの登録表を任意に追加、
変更しであるものとする。
First, in the initial state, when the system is generated, a plurality of unique object library names defined by the system administrator are registered in object library name registration table 4.5A, and each user can freely edit this registration table. addition,
shall be subject to change.

この時、各オブジェクトライブラリに対応する参照回数
45Bは初期値として全てOとなっている。
At this time, the reference counts 45B corresponding to each object library are all set to O as an initial value.

ここで連繋編集プログラム2が起動されると、参照回数
は−プル全て0であるから連繋編集プログラム2は登録
表に登録されている順序に従い、オブジェクトライブラ
リを参照する。この時、自的とするオブジェクトモジュ
ール又はシンボルを見つけたオブジェクトライブラリに
ついては表中の参照回数を1だけカウントア・ツブする
。さらに連繋編集プログラムは処理終了時に、この裏全
体を参照回数の順に並べかえ(ソート)を行う。
When the linked editing program 2 is started here, the reference counts are all 0, so the linked editing program 2 refers to the object library in the order registered in the registration table. At this time, the number of references in the table is counted by 1 for the object library in which the object module or symbol is found. Furthermore, at the end of processing, the linked editing program sorts (sorts) the entire back side in order of the number of references.

そして次からは参照回数の多い順から目的とするオブジ
ェクトライブラリの検索を行う。
Then, the target object libraries are searched in descending order of the number of references.

この場合、特殊なプログラムによって参照回数のリセッ
トが行われるように構成しても良い。
In this case, the reference count may be reset by a special program.

一般にオブジェクトライブラリはユーザの使用する言語
や応用パッケージ毎に複数個システムに用意されている
が、−人のユーザが使用するオブジェクトライブラリは
その中のほんの一部分であり、かつ、−人のユーザは同
じ種類、属性を持ったプログラムの連繋編集作業を繰り
返しで行う傾向が強いため、上記の方式により各ユーザ
の作業内容を学習し次回の作業時に反映させることによ
り、無駄なオブジェクトライブラリの参照を省き、早く
目的のオブジェクトモジュールやシンボルを捜し出すこ
とが可能となる。
Generally, multiple object libraries are prepared in a system for each language and application package used by users, but the object libraries used by - users are only a small part of them, and - users are the same. Since there is a strong tendency to repeatedly edit programs with different types and attributes, by learning each user's work content using the above method and reflecting it in the next work, unnecessary references to object libraries can be avoided. It becomes possible to quickly search for a desired object module or symbol.

なお、この実施例はオブジェクトライブラリ41につい
て参照回数テーブル45を設けた例を示したが、各マク
ロ定義ライブラリ42やインクルートファイルライブラ
リ43について各々参照回数テーブルを設けても良い。
Although this embodiment shows an example in which the reference count table 45 is provided for the object library 41, a reference count table may be provided for each macro definition library 42 and include file library 43.

またTSS方式における初期起動の際のプログラムライ
ブラリについて適用しても良い。
Further, the present invention may be applied to a program library at the time of initial startup in the TSS method.

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

以上説明したようにこの発明によれば、同一ユーザの過
去の連繋編集時のライブラリの参照度合を示す参照回数
テーブルを設け、ライブラリの参照を行う時、上記参照
回数チルプルに基づき過去に参照回数の多かったライブ
ラリから1頭番に検索して行くので高速処理が可能な連
繋編集方式を得ることができる。
As explained above, according to the present invention, a reference count table is provided that indicates the reference degree of the library during past linked editing by the same user, and when the library is referenced, the reference count in the past is calculated based on the reference count chill pull. Since the library is searched one by one from the largest number of libraries, a linked editing method capable of high-speed processing can be obtained.

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

第1図はこの発明の一実施例を示す構成図、第2図はこ
の発明における参照回数テーブルの内容の一例を示す図
、第3図は従来の連繋編集方式の構成図である。 l・・・ソースプログラム、2・・・コンパイラ(連繋
編集プログラム)、3・・・エグゼクティブプログラム
、4・・・ライブラリ格納メモリ、45・・・参照回数
テーブル、45A・・・登録表、45B・・・有効参照
回数。 なお、図中、同一符号は同−又は相当する構成要素を示
す。 代理人  大  岩  増  雄(ばか2名)手続補正
書(自発) 平成1年5月26日 2、発明の名称 プログラムの連繋編集方式 3、補正をする者 代表者志岐守哉 5 補正の対象 発明の詳細な説明、図面の簡単な説明、図面の欄。 a 補正の内容 (1)明細書第1頁第19行目「第3図はコンパイラが
」とあるのを「第3図は連繋編集プログラムが」と補正
する。 (2)同書第1頁第20行目、第8頁第1行目「ソース
プログラム」とあるのを「オブジェクトモジュール」と
補正する。 (3)同書第2頁第1行目、第6行目乃至第7行目、第
3頁第1行目、第8頁第2行目乃至第3行目「エグゼク
ティブプログラム」とあるのを「ロードモジュール」と
補正する。 (4)同書第2頁第3行目乃至第5行目「エディタを用
いて・・・・・・連繋編集プログラム、」とあるのを「
コンパイラによって翻訳されたオブジェクトモジュール
、2は連繋編集プログラム、」と補正する。 (5)同書第2頁第12行目乃至第19行目「ソースプ
ログラム1を・・・・・・更にオブジェクトライブラリ
41を」とあるのを「コンパイラによって翻訳されたオ
ブジェクトモジュール1をリンクする時、オブジェクト
ライブラリ41を」と補正する。 (6)同書第7頁第5行目「回数テーブルを設けても良
い。」とあるのを「回数テーブルを設けてコンパイラの
ソースプログラム翻訳時に応用しても良い。」と補正す
る。 (7)同書第7頁第6行目rTss方式における初期起
動の」とあるのをrTss方式におけるプログラム起動
の」と補正する。 (8)同書第8頁第1行目乃至第2行目「コンパイラ(
連繋編集プログラム)、」とあるのを「連繋編集プログ
ラム、」と補正する。 (8)図面、第1図、第3図を別紙のとおり補正する。 以上
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing an example of the contents of a reference count table in the present invention, and FIG. 3 is a block diagram of a conventional linked editing system. l... Source program, 2... Compiler (linked editing program), 3... Executive program, 4... Library storage memory, 45... Reference count table, 45A... Registration table, 45B. ...Valid number of references. In addition, in the figures, the same reference numerals indicate the same or corresponding components. Agent: Masuo Oiwa (2 idiots) Procedural amendment (voluntary) May 26, 1999 2. Name of invention program linked editing method 3. Person making the amendment Representative Moriya Shiki 5. Invention subject to amendment Detailed description, brief description of the drawing, drawing column. a Contents of the amendment (1) In the 19th line of page 1 of the specification, the phrase "Figure 3 is created by the compiler" is amended to read "Figure 3 is created by the linked editing program." (2) In the same book, page 1, line 20, page 8, line 1, "source program" is corrected to "object module." (3) The words ``Executive Program'' on page 2, lines 1, 6 and 7, page 3, line 1, and page 8, lines 2 and 3 of the same book. Correct it to "load module". (4) In the 3rd to 5th lines of page 2 of the same book, the phrase ``Using an editor... linked editing program'' was replaced with ``
2 is an object module translated by a compiler, and 2 is a linked editing program.'' (5) On page 2 of the same book, lines 12 to 19, the phrase ``source program 1...and object library 41'' is replaced with ``when linking object module 1 translated by the compiler.'' , object library 41.'' (6) In the fifth line of page 7 of the same book, the phrase ``A number table may be provided.'' has been corrected to ``A number table may be provided and applied when translating a source program by a compiler.'' (7) In the same book, page 7, line 6, "initial startup in the rTss method" is corrected to "program startup in the rTss method." (8) Page 8 of the same book, lines 1 and 2, “Compiler (
``Continuous editing program),'' should be corrected to ``Continuous editing program,''. (8) The drawings, Figures 1 and 3 shall be amended as shown in the attached sheet. that's all

Claims (1)

【特許請求の範囲】  プログラムライブラリを参照しつつプログラムの連繋
編集を行うプログラムの連繋編集方式において、 同一ユーザの過去の連繋編集時のライブラリの参照度合
を示す参照回数テーブルを設け、ライブラリの参照を行
う時、上記参照回数テーブルに基づき過去に参照回数の
多かったライブラリから順番に検索して行くことを特徴
とするプログラムの連繋編集方式。
[Claims] In a program link editing method in which a program is linked-edited while referring to a program library, a reference count table is provided that indicates the degree of reference to the library during past link-editing by the same user, and the library is referenced. When performing a linked editing method for a program, the program is searched in order from the libraries that have been referenced the most in the past based on the reference number table.
JP63123079A 1988-05-20 1988-05-20 Cooperative editing system for program Pending JPH01292526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63123079A JPH01292526A (en) 1988-05-20 1988-05-20 Cooperative editing system for program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63123079A JPH01292526A (en) 1988-05-20 1988-05-20 Cooperative editing system for program

Publications (1)

Publication Number Publication Date
JPH01292526A true JPH01292526A (en) 1989-11-24

Family

ID=14851673

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63123079A Pending JPH01292526A (en) 1988-05-20 1988-05-20 Cooperative editing system for program

Country Status (1)

Country Link
JP (1) JPH01292526A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018120447A (en) * 2017-01-26 2018-08-02 株式会社平和 Game machine
JP2021152720A (en) * 2020-03-24 2021-09-30 中外炉工業株式会社 Design support system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018120447A (en) * 2017-01-26 2018-08-02 株式会社平和 Game machine
JP2021152720A (en) * 2020-03-24 2021-09-30 中外炉工業株式会社 Design support system

Similar Documents

Publication Publication Date Title
US5276880A (en) Method for parsing and representing multi-versioned computer programs, for simultaneous and synchronous processing of the plural parses
US5586328A (en) Module dependency based incremental compiler and method
JPS63181033A (en) Automatic program generating system
JPH03129469A (en) Natural language processor
JP2004094487A (en) Support system for preparing document
JPH01292526A (en) Cooperative editing system for program
Beetem et al. Incremental scanning and parsing with Galaxy
JP3305767B2 (en) Sort processing method and compilation method
JPH021030A (en) Compiling system
JPH0675757A (en) Link system for virtual space resident program
JPH02278340A (en) Compiling system
JPH0752391B2 (en) Translation method of source program including multiple database descriptions
JPS6277677A (en) Grammar retrieval system for natural language syntax analysis
JPH0285930A (en) Record compiling system
JPH0765011A (en) Operating manual preparing device/method
Mattson Portable seismic signal processing for parallel computers
JPH04177431A (en) Object optimization system with unreferred label turned into nameless item
Chu et al. A programming language for high-level architecture
JPS62282329A (en) Information processor
JPH0455944A (en) Production of syntactic analysis part of compiler
Gamble et al. Explicit Parallel Programming: System Description
JPH05225013A (en) Virtual data base system
JPH0266631A (en) Address table output system using japanese label
JPH0368028A (en) Picture phrase analyzing system
JPH03138731A (en) System for sharing data between jobs