JPH04245325A - File control system - Google Patents
File control systemInfo
- Publication number
- JPH04245325A JPH04245325A JP4722791A JP4722791A JPH04245325A JP H04245325 A JPH04245325 A JP H04245325A JP 4722791 A JP4722791 A JP 4722791A JP 4722791 A JP4722791 A JP 4722791A JP H04245325 A JPH04245325 A JP H04245325A
- Authority
- JP
- Japan
- Prior art keywords
- file
- source
- source file
- related information
- files
- 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
Links
- 238000007726 management method Methods 0.000 claims description 11
- 230000003213 activating effect Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 3
- 230000004913 activation Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は、情報処理装置に関し、
コンピュータ用プログラムに対するソースファイルと、
言語処理系により生成されるオブジェクトファイルの相
互関係のファイル管理方式に関する。[Industrial Application Field] The present invention relates to an information processing device,
source files for computer programs;
This paper relates to a file management method for the interrelationship of object files generated by a language processing system.
【0002】0002
【従来の技術】従来のファイル管理方式においては、ソ
ースファイルとオブジェクトファイルの対応関係および
ソースファイルからオブジェクトファイルを生成するた
めの翻訳指示情報をオブジェクトファイル上に登録し管
理する方式あるいは、ソースファイルおよびオブジェク
トファイルとは別のファイル上で管理する方式であった
。[Background Art] Conventional file management methods involve registering and managing the correspondence between source files and object files and translation instruction information for generating object files from source files in object files; This method was to manage files in a separate file from the object file.
【0003】0003
【発明が解決しようとする課題】オブジェクトファイル
上で管理する方式では、ソースファイルを別ファイルに
複写し各々が別々に更新されて世代分離した場合に、ソ
ースファイルとオブジェクトファイルの対応関係をもれ
なく管理することができない。また、ソースファイルお
よびオブジェクトファイルとは別のファイルにより管理
する方式では、そのファイルが消去された場合および前
述のようなソースファイル複写更新による世代分離の場
合にはソースファイルとオブジェクトファイルの対応関
係を正しく管理できないという欠点がある。[Problem to be solved by the invention] In the method of managing on object files, when the source files are copied to separate files and each is updated separately and the generations are separated, the correspondence between the source files and object files must be managed without fail. Can not do it. In addition, in the method of managing source files and object files using separate files, if the file is deleted or generation separation is performed by copying and updating the source file as described above, the correspondence between the source file and object file cannot be maintained. The drawback is that it cannot be managed properly.
【0004】0004
【課題を解決するための手段】コンピュータ用の言語で
記述された原始プログラムを格納するソースファイルな
らびに、原始プログラムを翻訳して作成される目的プロ
グラムを格納するオブジェクトファイルに対する管理を
行うファイル管理システムにおいて、新規翻訳指示ある
いは同一ソースファイルへの異なる翻訳指示に対して、
当該ソースファイルに対する翻訳指示情報(オブジェク
トファイルのファイル名、コンパイルオプション)をソ
ースファイル上に新規登録、あるいは追加登録蓄積し、
言語処理系を起動して新たにオブジェクトファィルを自
動作成するオブジェクト関連情報設定手段と、ソースフ
ァイル上に登録されている翻訳指示情報を抽出するオブ
ジェクト関連情報入力手段と、当該ソースファイルが更
新された場合には、既に登録済みである翻訳指示情報を
更新し、言語処理系を起動してオブジェクトファイルの
更新も自動的に行うオブジェクト関連情報更新手段を有
することを特徴とするファイル管理方式。[Means for solving the problem] In a file management system that manages source files that store source programs written in a computer language and object files that store target programs created by translating the source programs. , for new translation instructions or different translation instructions for the same source file.
Newly register or additionally register translation instruction information (file name of object file, compile options) for the source file in the source file,
An object-related information setting means for automatically creating a new object file by starting a language processing system, an object-related information input means for extracting translation instruction information registered on a source file, and an object-related information input means for extracting translation instruction information registered on a source file. In this case, the file management method is characterized by having an object-related information update means that updates translation instruction information that has already been registered, activates a language processing system, and automatically updates an object file.
【0005】[0005]
【実施例】次に、本発明について図面を参照して説明す
る。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.
【0006】図1は、本発明の一実施例のブロック図で
ある。本実施例によるファイル管理方式は、オブジェク
ト関連情報設定手段11、オブジェクト関連情報入力手
段12、オブジェクト関連情報更新手段13によって構
成され、ユーザ指示20、言語処理系30、ソースファ
イル40、オブジェクトファイル50を収容する。実線
矢印は情報の入出力を示し、二重線矢印は起動関係を示
す。FIG. 1 is a block diagram of one embodiment of the present invention. The file management system according to this embodiment is composed of an object-related information setting means 11, an object-related information inputting means 12, and an object-related information updating means 13. accommodate. Solid line arrows indicate input/output of information, and double line arrows indicate activation relationships.
【0007】図2は、本実施例によるファイル管理方式
が入力するユーザ指示20の構成例を示す図である。ユ
ーザ指示20は、言語処理系起動コマンド21と翻訳指
示情報22から構成される。翻訳情報22は、ソースフ
ァイル名221とオブジェクトファイル名222とコン
パイルオプション223から成る場合と、ソースファイ
ル名221のみから成る場合の2つの形式がある。FIG. 2 is a diagram showing an example of the structure of the user instruction 20 input by the file management method according to this embodiment. The user instruction 20 is composed of a language processing system startup command 21 and translation instruction information 22. The translation information 22 has two formats: one consisting of a source file name 221, an object file name 222, and a compile option 223, and the other consisting only of the source file name 221.
【0008】図3は、オブジェクト関連情報設定手段1
6によって設定されたソースファイル40の構成例を示
す図である。ソースファイル40は、オブジェクト関連
情報41と原始プログラム42によって構成される。オ
ブジェクト関連情報41は、ソースリビジョン411、
ソース作成/更新日時412と、対応するオブジェクト
ファイル50の翻訳指示情報413、オブジェクトリビ
ジョン414、オブジェクト作成/更新日時415の並
びから構成されている。翻訳指示情報413は、以前に
オブジェクトファイル50を生成したとき、言語処理系
に渡された翻訳指示情報22を保存している。FIG. 3 shows object related information setting means 1
6 is a diagram illustrating an example of the configuration of a source file 40 set by No. 6. FIG. The source file 40 is composed of object related information 41 and a source program 42. Object related information 41 includes source revision 411,
It consists of a source creation/update date and time 412, translation instruction information 413 of the corresponding object file 50, object revision 414, and object creation/update date and time 415. The translation instruction information 413 stores the translation instruction information 22 that was passed to the language processing system when the object file 50 was previously generated.
【0009】本実施例によるファイル管理方式は、ユー
ザ指示20を入力し翻訳指示情報22の形式を判定し、
翻訳指示情報22の形式がソースファイル名221とオ
ブジェクトファイル名222とコンパイルオプション2
23から成る場合には、オブジェクト関連情報設定手段
を起動して、オブジェクトファイルを作成し、ソースフ
ァイル40上のオブジェクト関連情報41の翻訳指示情
報の登録および追加を行う。翻訳指示情報22の形式が
ソースファイル名221のみから成る場合には、オブジ
ェクト関連情報更新手段13を起動して、ソースファイ
ル上のオブジェクト関連情報から管理されているすべて
のオブジェクトファイルを再生成し、ソースファイル4
0上のオブジェクト関連情報を更新する。The file management method according to this embodiment inputs a user instruction 20, determines the format of translation instruction information 22,
The format of the translation instruction information 22 is the source file name 221, object file name 222, and compile option 2.
23, the object related information setting means is activated, an object file is created, and translation instruction information of the object related information 41 on the source file 40 is registered and added. When the format of the translation instruction information 22 consists of only the source file name 221, the object related information updating means 13 is activated to regenerate all the managed object files from the object related information on the source file, Source file 4
Update object related information on 0.
【0010】オブジェクト関連情報手段11は、ユーザ
指示20の翻訳指示情報22の形式がソースファイル名
221とオブジェクトファイル名222とコンパイルオ
プション223から成る場合にファイル管理システムよ
り起動され、ユーザ指示20内の翻訳指示情報22で言
語処理系30を起動してオブジェクトファイル50を生
成する。続いてオブジェクト関連情報入力手段12を起
動してソースファイル上のオブジェクト関連情報41を
抽出し、オブジェクト関連情報41の翻訳指示情報41
3に対して、新たに生成したオブジェクトファイル50
用の翻訳指示情報22が、未登録であれば、新たに生成
したオブジェクトファイル50に対応するオブジェクト
関連情報41としてオブジェクトリビジョン414、オ
ブジェクト作成/更新日時415とソースファイルのソ
ースリビジョン411、ソース作成/更新日時412の
追加を行う。既に登録済みの場合は、生成したオブジェ
クトファイル50に対応するオブジェクト関連情報41
のオブジェクトリビジョン414、オブジェクト作成/
更新日時415とソースファイルのソースリビジョン4
11、ソース作成/更新日時412を更新する。The object-related information means 11 is activated by the file management system when the format of the translation instruction information 22 of the user instruction 20 consists of a source file name 221, an object file name 222, and a compile option 223. The language processing system 30 is activated using the translation instruction information 22 to generate an object file 50. Next, the object-related information input means 12 is activated to extract the object-related information 41 on the source file, and the translation instruction information 41 of the object-related information 41 is
3, the newly generated object file 50
If the translation instruction information 22 for is not registered, object revision 414, object creation/update date and time 415, source revision 411 of the source file, source creation/ Update date and time 412 is added. If it has already been registered, the object related information 41 corresponding to the generated object file 50
Object revision 414, object creation/
Update date and time 415 and source revision 4 of the source file
11. Update the source creation/update date and time 412.
【0011】オブジェクト関連情報入力手段12は、オ
ブジェクト関連情報設定手段11とオブジェクト関連情
報更新手段13から起動され、指定されたソースファイ
ル上のオブジェクト関連情報41を抽出する。The object-related information input means 12 is activated by the object-related information setting means 11 and the object-related information updating means 13, and extracts object-related information 41 on a designated source file.
【0012】オブジェクト関連情報更新手段13は、翻
訳指示情報22の形式がソースファイル名221のみか
ら成る場合に起動され、オブジェクト関連情報入力手段
12を起動してソースファイル上のオブジェクト関連情
報41を抽出し、すべてのオブジェクト関連情報41内
の翻訳指示情報414で言語処理系30を起動して対応
するすべてのオブジェクトファイル50を再作成する。
続いてオブジェクト関連情報41内のあるオブジェクト
リビジョン415、オブジェクト作成日時416とソー
スファイルのソースリビジョン411、ソース作成/更
新日時412を更新する。The object-related information updating means 13 is activated when the format of the translation instruction information 22 consists of only the source file name 221, and activates the object-related information input means 12 to extract the object-related information 41 on the source file. Then, the language processing system 30 is activated using the translation instruction information 414 in all the object related information 41 to recreate all the corresponding object files 50. Subsequently, a certain object revision 415, object creation date and time 416, and source file source revision 411 and source creation/update date and time 412 in the object related information 41 are updated.
【0013】[0013]
【発明の効果】本発明のファイル管理方式を利用すれば
、ソースファイルの側から対応するオブジェクトファイ
ルを識別することが可能となるので、ソースファイル自
体が消滅しない限り、コンパイルオプションを変更する
ことによって1つのソースファイルから複数のオブジェ
クトファイルを生成する場合、あるいはソースファイル
が複写等により世代分離したような場合においてもソー
スファイルとオブジェクトファイルの関係を正確かつも
れなく管理でき、しかもソースファイル更新時には、ソ
ースファイル名を与えるだけでソースファイルに対応す
るすべてのオブジェクトファイルの更新が自動的に行え
るという効果がある。[Effects of the Invention] By using the file management method of the present invention, it becomes possible to identify the corresponding object file from the source file side, so as long as the source file itself does not disappear, it is possible to Even when multiple object files are generated from one source file, or when source files have been separated into generations due to copying, etc., the relationship between source files and object files can be managed accurately and without exception. This has the effect that all object files corresponding to the source file can be automatically updated just by providing the file name.
【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.
【図2】ユーザ指示の構成例である。FIG. 2 is a configuration example of a user instruction.
【図3】ソースファイルの構成例である。FIG. 3 is an example of the configuration of a source file.
11 オブジェクト関連情報設定手段12
オブジェクト関連情報入力手段13 オブジェ
クト関連情報更新手段20 ユーザ指示
30 言語処理系
40 ソースファイル
50 オブジェクトファイル11 Object related information setting means 12
Object related information input means 13 Object related information update means 20 User instructions 30 Language processing system 40 Source file 50 Object file
Claims (1)
始プログラムを格納するソースファイル、及び該原始プ
ログラムを翻訳して作成される目的プログラムを格納す
るオブジェクトファイルに対する管理を行うファイル管
理システムにおいて、新規翻訳指示あるいは同一ソース
ファイルへの異なる翻訳指示に対して、当該ソースファ
イルに対するオブジェクトファイル名、コンパイルオプ
ションを含む翻訳指示情報を、ソースファイル上に新規
登録、あるいは追加登録蓄積し、言語処理系を起動して
新たにオブジェクトファィルを自動作成するオブジェク
ト関連情報設定手段と、ソースファイル上に登録されて
いる前記翻訳指示情報を抽出するオブジェクト関連情報
入力手段と、当該ソースファイルが更新された場合には
、既に登録済みである翻訳指示情報を更新し、言語処理
系を起動してオブジェクトファイルの更新も自動的に行
うオブジェクト関連情報手段とを有するファイル管理方
式。Claim 1: A file management system that manages source files that store source programs written in a computer language and object files that store target programs created by translating the source programs. For instructions or different translation instructions for the same source file, the translation instruction information including the object file name and compile options for the source file is newly registered or additionally registered and accumulated in the source file, and the language processing system is started. an object-related information setting means for automatically creating a new object file; an object-related information input means for extracting the translation instruction information registered on the source file; A file management method comprising object-related information means for updating registered translation instruction information, activating a language processing system, and automatically updating object files.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4722791A JPH04245325A (en) | 1991-01-30 | 1991-01-30 | File control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4722791A JPH04245325A (en) | 1991-01-30 | 1991-01-30 | File control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04245325A true JPH04245325A (en) | 1992-09-01 |
Family
ID=12769319
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4722791A Pending JPH04245325A (en) | 1991-01-30 | 1991-01-30 | File control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04245325A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009098963A (en) * | 2007-10-17 | 2009-05-07 | Mitsubishi Electric Corp | Automatic module generation system |
-
1991
- 1991-01-30 JP JP4722791A patent/JPH04245325A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009098963A (en) * | 2007-10-17 | 2009-05-07 | Mitsubishi Electric Corp | Automatic module generation system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR940022315A (en) | Database system save device, database system restore device, database system implement device, database system and its save, restore, and implement method | |
JPH09147040A (en) | Microprogram management device | |
JPH04342025A (en) | Text managing and restoring system | |
JP2002157118A (en) | Program generation assisting device, program generating method, storage medium, and program | |
JPH04245325A (en) | File control system | |
JPH01228025A (en) | Program edition number control system | |
JP4167889B2 (en) | Data conversion method and computer system therefor | |
JPH039426A (en) | Software development environment storing system | |
JPH0391039A (en) | Program for test for software and method for preparing test data | |
JP3670305B2 (en) | Database search statement creation device | |
JP3115042B2 (en) | Program resynthesis processing unit when parts are changed | |
JP3458421B2 (en) | Document processing system | |
JP2771986B2 (en) | Magnetic tape unit | |
JPS63279346A (en) | File replacement processing system | |
JPH02224022A (en) | Source program update system | |
JPH0962554A (en) | Quiescent point save generation system | |
JPH07230383A (en) | Lm-jcl automatic release system | |
JPH01191233A (en) | Automatic program generating system | |
JPH07230377A (en) | Software resource management system | |
JPS6019250A (en) | Control system for processed document name record of document processing system | |
JPH04220721A (en) | Prograom specification generation device | |
JPH05127965A (en) | Design information restoring method | |
JP2004054714A (en) | Database access script creation system and method, and script generation program | |
JPH0561662A (en) | Method and device for controlling execution of program parts | |
JPH03204741A (en) | File recovery system |