JPH0371341A - Source program transplanting system - Google Patents

Source program transplanting system

Info

Publication number
JPH0371341A
JPH0371341A JP20873589A JP20873589A JPH0371341A JP H0371341 A JPH0371341 A JP H0371341A JP 20873589 A JP20873589 A JP 20873589A JP 20873589 A JP20873589 A JP 20873589A JP H0371341 A JPH0371341 A JP H0371341A
Authority
JP
Japan
Prior art keywords
source program
conversion
rule
operating system
program
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
JP20873589A
Other languages
Japanese (ja)
Inventor
Akira Ozawa
小沢 明
Koji Saga
嵯峨 幸治
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 JP20873589A priority Critical patent/JPH0371341A/en
Publication of JPH0371341A publication Critical patent/JPH0371341A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To sufficiently execute the conversion and the check without allowing a person's help to intervene, and also, to execute the transplantation of a modified part without a problem by providing a program separate rule data base, an operating system separate rule data base, and a means for detecting a limit violation in a source program. CONSTITUTION:The subject system is provided with an operating system separate rule data base 4 in which a conversion rule and a limit rule of every operating system are stored, a program separate rule data base 3 in which a conversion rule and a limit rule of every source program are stored, and based on a conversion rule 8 and a limit rule 10 of both the rule data bases, the conversion of the source program and the check of the limit violation are executed. Accordingly, since they are executed without a person's help, an artificial miss is avoided. In such a way, even at the time of transportion of a modified part, the conversion and the check can be executed efficiently.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、あるオペレーティングシステム上で動作する
ソースプログラムを他のオペレーティングシステム上へ
移植するソースプログラム移植方式に関するものである
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a source program porting method for porting a source program running on one operating system to another operating system.

〔従来の技術〕[Conventional technology]

ソースプログラムの有する機能はそのままで、そのソー
スプログラムを実行する環境であるオペレーティングシ
ステムを変更する場合がしばしばある。このように、あ
るオペレーティングシステム上で動作するソースプログ
ラムを他のオペレーティングシステム上で実行可能な形
式とすることは移植と呼ばれている。
It is often the case that the operating system, which is the environment in which the source program is executed, is changed while the functionality of the source program remains the same. In this way, converting a source program that runs on one operating system into a format that can be executed on another operating system is called porting.

従来、この種のソースプログラム移植方式にあっては、
オペレーティングシステム毎の変換ルール(異なるビノ
ト構成のデータの変換の規則等)および制限ルール(変
換が正常であるか否かをチエツクする規則等)を格納し
たオペレーティングシステム別ルールデータベースを設
け、変換ルールに基づいてソースプログラムを変換先の
オペレーティングシステムに適合する形式に変換すると
共に、制限ルールを用いて違反項目がないかどうかをチ
エツクするようにしていた。
Conventionally, in this type of source program porting method,
We have created a rule database for each operating system that stores conversion rules for each operating system (such as rules for converting data with different binoto configurations) and restriction rules (such as rules for checking whether the conversion is normal). Based on this, the source program is converted to a format compatible with the destination operating system, and restriction rules are used to check whether there are any violations.

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

従来のソースプログラムの移植は上述したように行われ
ていたが、ソースプログラムの変換およびチエツクには
ソースプログラム固有の情報、例えばそれが記述された
言語特有の情報等も必要であるため、人手を介入せねば
ならない部分があり、そのため、変換漏れ、制限エラー
検出漏れ等の人為的な旦スが発生する危険性があるとい
う欠点があった。
Conventionally, porting of source programs has been carried out as described above, but converting and checking source programs requires information specific to the source program, such as information specific to the language in which it is written, so it requires manual intervention. There are parts that require intervention, which has the disadvantage that there is a risk of artificial errors such as omissions in conversion and failure to detect restriction errors.

また、ソースプログラムを新規に移植した後に、その元
となるソースプログラムを部分的に改造し、改造部分の
みを移植するような場合にあっては、改造部分に関する
ソースプログラム固有の情報が新たに必要となり、充分
な変換およびチエツクを行うために非常に手間がかかり
、作業効率が悪いという欠点があった。なお、改造され
ていない部分を含めて全体を新規に移植することも可能
であるが、効率の低下が甚だしい。
In addition, if after porting a new source program, the original source program is partially modified and only the modified part is ported, information specific to the source program regarding the modified part is newly required. Therefore, it takes a lot of time and effort to perform sufficient conversion and checking, which has the drawback of poor working efficiency. It is also possible to transplant the entire system to a new one, including the parts that have not been modified, but this would result in a significant drop in efficiency.

本発明は上記の点に鑑み提案されたものであり、その目
的とするところは、人手を介入することなく、充分な変
換およびチエツクが行えると共に、改造部分の移植も何
ら問題なく行うことのできるソースプログラム移植方式
を提供することにある。
The present invention has been proposed in view of the above points, and its purpose is to be able to perform sufficient conversion and checking without human intervention, and to also be able to transplant modified parts without any problems. The objective is to provide a source program porting method.

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

本発明は上記の目的を達成するため、 ソースプログラム毎の変換ルールおよび制限ルールを格
納したプログラム別ルールデータベースと、 オペレーティングシステム毎の変換ルールおよび制限ル
ールを格納したオペレーティングシステム別ルールデー
タベースと、 検索条件カード等により変換元および変換先のオペレー
ティングシステム名ならびにソースプログラムのプログ
ラムID等の検索条件を設定する検索条件設定手段と、 設定された検索条件に従い前記両ルールデータベースの
検索およびデータの入出力を行うデータベースアクセス
手段と、 前記両ルールデータベースより検索された変換ルールを
用いて前記ソースプログラムの変換を行うソースプログ
ラム変換手段と、 前記両ルールデータベースより検索された制限ルールを
用いて前記ソースプログラム中の制限違反の検出を行う
制限違反検出手段とを備えるようにしている。
In order to achieve the above object, the present invention includes: a rule database for each program that stores conversion rules and restriction rules for each source program; a rule database for each operating system that stores conversion rules and restriction rules for each operating system; and search conditions. A search condition setting means for setting search conditions such as conversion source and destination operating system names and program IDs of source programs using cards, etc., and searching both rule databases and inputting and outputting data according to the set search conditions. database access means; source program conversion means for converting the source program using conversion rules retrieved from both rule databases; and restrictions in the source program using restriction rules retrieved from both rule databases. A restriction violation detection means for detecting a violation is provided.

〔作用〕[Effect]

本発明のソースプログラム移植方式にあっては、検索条
件設定手段が検索条件カード等に従って変換元および変
換先のオペレーティングシステム名ならびにソースプロ
グラムのプログラムID等の検索条件を設定し、設定さ
れた検索条件に従いデータベースアクセス手段がソース
プログラム毎の変換ルールおよび制限ルールを格納した
プログラム別ルールデータベースとオペレーティングシ
ステム毎の変換ルールおよび制限ルールを格納したオペ
レーティングシステム別ルールデータベースとの検索お
よびデータの入出力を行い、ソースプログラム変換手段
が両ルールデータベースより検索された変換ルールを用
いてソースプログラムの変換を行い、制限違反検出手段
が両ルールデータベースより検索された制限ルールを用
いてソースプログラム中の制限違反の検出を行う。
In the source program porting method of the present invention, the search condition setting means sets search conditions such as the conversion source and destination operating system names and the program ID of the source program according to the search condition card etc. Accordingly, the database access means searches and inputs/outputs data between a program-specific rule database storing conversion rules and restriction rules for each source program and an operating system-specific rule database storing conversion rules and restriction rules for each operating system; The source program conversion means converts the source program using the conversion rules retrieved from both rule databases, and the restriction violation detection means detects restriction violations in the source program using the restriction rules retrieved from both rule databases. conduct.

〔実施例〕〔Example〕

以下、本発明の実施例につき図面を参照して説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図は、本発明のソースプログラム移植方式の一実施
例を示ず構成国である。第1図において、本実施例は、
変換ルールおよび制限ルールを格納したプログラム別ル
ールデータベース3およびオペレーティングシステム別
ルールデータベース4と、機能部分として、検索条件設
定手段5とデータベースアクセス手段6とソースプログ
ラム変換手段7と制限違反検出手段9とを備えている。
FIG. 1 does not show an embodiment of the source program porting method of the present invention, but shows the constituent countries. In FIG. 1, this example shows the following:
A rule database 3 for each program and a rule database 4 for each operating system that store conversion rules and restriction rules, and a search condition setting means 5, a database access means 6, a source program conversion means 7, and a restriction violation detection means 9 as functional parts. We are prepared.

なお、入力ソースプログラムlは他のオペレーティング
システムへの変換を行う対象であるソースプログラム、
出力ソースプログラム12は変換後のソースプログラム
である。なお、各部の機能は次の通りである。
Note that the input source program l is a source program to be converted to another operating system,
The output source program 12 is a converted source program. The functions of each part are as follows.

プログラム別ルールデータベース3;取り扱う個々のソ
ースプログラム毎の変換ルールおよび制限ルールを格納
したデータベースであり、移植作業者が新規移植時等に
作成した入力ソースプログラムIに固有のものである0
例えば、入力ソースプログラム1の記述に用いた言語等
に特有な情報が含まれている。
Program-specific rule database 3: This is a database that stores conversion rules and restriction rules for each source program handled, and is unique to the input source program I created by the porter when porting a new port.
For example, information specific to the language used to describe the input source program 1 is included.

オペレーティングシステム別ルールデータベース4;オ
ペレーティングシステム毎の変換ルールおよび制限ルー
ルを格納したデータベースである。
Operating system-specific rule database 4: This is a database that stores conversion rules and restriction rules for each operating system.

例えば、ビット構成の異なるデータ間の変換に必要な情
報等が含まれている。
For example, it includes information necessary for conversion between data with different bit configurations.

検索条件設定手段5;検索条件カード2により変換元お
よび変換先のオペレーティングシステム名ならびに入力
ソースプログラム1のプログラムID等の情報を受は付
け、これらを検索条件として設定する機能を有している
Search condition setting means 5; has a function of receiving information such as the names of the conversion source and destination operating systems and the program ID of the input source program 1 using the search condition card 2, and setting these as search conditions.

データベースアクセス手段6;検索条件設定手段5によ
って設定された検索条件に従い、プログラム別ルールデ
ータベース3およびオペレーティングシステム別ルール
データベース4の検索ならびにデータの入出力を行う機
能を有している。
Database access means 6; has the function of searching the program-specific rule database 3 and the operating system-specific rule database 4 and inputting/outputting data according to the search conditions set by the search condition setting means 5.

ソースプログラム変換手段7;データベースアクセス手
段6により両ルールデークヘース3.4より検索され取
得した変換ルール8を用いて人力ソースプログラム1の
変換を行い、出力ソースプログラム12を生成する機能
を有している。
Source program conversion means 7; has a function of converting the human source program 1 using the conversion rules 8 retrieved and obtained from both rule databases 3.4 by the database access means 6, and generating the output source program 12. ing.

制限違反検出手段9;データベースアクセス手段6によ
り両ルールデータベース3.4より検索され取得した制
限ルール10を用いて人力ソースプログラム1中の制限
違反の検出を行い、制限エラーの詳細を示す制限エラー
リスト11を出力する機能を有している。
Restriction violation detection means 9; detects restriction violations in the human source program 1 using the restriction rules 10 retrieved and obtained from both rule databases 3.4 by the database access means 6, and creates a restriction error list showing details of restriction errors. It has a function of outputting 11.

次に、上記の実施例の動作を第2図のフローチャートに
沿って説明する。
Next, the operation of the above embodiment will be explained along the flowchart of FIG.

先ず、検索条件設定手段5は検索条件カード2から変換
元および変換先のオペレーティングシステム名ならびに
人力ソースプログラム1のプログラムID等の情報を入
力し、これらからデータベース検索条件の設定を行う(
ステップS1)。
First, the search condition setting means 5 inputs information such as the names of the conversion source and destination operating systems and the program ID of the human source program 1 from the search condition card 2, and sets database search conditions from these (
Step S1).

次に、データベースアクセス手段6は設定された検索条
件に従い、ソースプログラム毎に各種ルールを格納した
プログラム別ルールデータベース3とオペレーティング
システム毎に各種ルールを格納したオペレーティングシ
ステム別ルールデータベース4とから変換ルールの検索
を行う(ステップ32)。
Next, the database access means 6 searches for conversion rules from the program-specific rule database 3 that stores various rules for each source program and the operating system-specific rule database 4 that stores various rules for each operating system, according to the set search conditions. A search is performed (step 32).

続いて、ソースプログラム変換手段7は検索し取得した
変換ルール8に従って、入力ソースプログラムlを変換
先のオペレーティングシステムに適合する形式に変換し
、出力ソースプログラム12を生成する(ステップS3
)。
Subsequently, the source program conversion means 7 converts the input source program l into a format compatible with the destination operating system according to the searched and acquired conversion rule 8, and generates the output source program 12 (step S3
).

次に、データベースアクセス手段6は、既に設定されて
いる検索条件に従い、プログラム別ルールデータベース
3とオペレーティングシステム別ルールデータベース4
とから制限ルールの検索を行う(ステップS4)。
Next, the database access means 6 accesses the program-specific rule database 3 and the operating system-specific rule database 4 according to the already set search conditions.
A search for restriction rules is performed from (step S4).

そして、制限違反検出手段9は検索され取得した制限ル
ール10をもとに、人力ソースプログラム1中の制限エ
ラーの検出を行う(ステップS5)。
Then, the restriction violation detection means 9 detects a restriction error in the human source program 1 based on the retrieved and acquired restriction rule 10 (step S5).

この時、制限エラーの詳細を制限エラーリス)IIへ出
力する。
At this time, details of the limit error are output to the limit error list II.

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

以上説明したように、本発明のソースプログラム移植方
式にあっては、オペレーティングシステム毎の変換ルー
ルおよび制限ルールを格納したオペレーティングシステ
ム別ルールデータベースの他に、ソースプログラム毎の
変換ルールおよび制限ルールを格納したプログラム別ル
ールデークヘースヲ設け、両ルールデータベースの変換
ルールおよび制限ルールに基づいてソースプログラムの
変換および制限違反のチェフクを行うようにしているた
め、 ■人手を介することがないので、人為的なミスが避けら
れる。
As explained above, in the source program porting method of the present invention, in addition to a rule database for each operating system that stores conversion rules and restriction rules for each operating system, conversion rules and restriction rules for each source program are stored. A rule database is set up for each program, and source programs are converted and checked for violation of restrictions based on the conversion rules and restriction rules of both rule databases. Mistakes can be avoided.

■改造部分の移植においても効率よく変換およびチェツ
クが行える。
■Efficient conversion and checking can be performed even when porting modified parts.

等の効果がある。There are other effects.

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

第1図は本発明のソースプログラム移植方式の一実施例
を示す構成図および、 第2図は第1図の実施例の処理を示すフローチャートで
ある。 図において、 1・・・・・・入力ソースプログラム 2・・・・・・検索条件カード 3・・・・・・プログラム別ルールデータベース4・・
・・・・オペレーティングシステム別ルールデータベー
ス 5・・・・・・検索条件設定手段 6・・・・・・データベースアクセス手段7・・・・・
・ソースプログラム変換手段8・・・・・・変換ルール 9・・・・・・制限違反検出手段 10・・・制限ルール 11・・・制限エラーリスト 12・・・出力ソースプログラム
FIG. 1 is a block diagram showing an embodiment of the source program porting method of the present invention, and FIG. 2 is a flowchart showing the processing of the embodiment of FIG. In the figure, 1...Input source program 2...Search condition card 3...Program-specific rule database 4...
...Rule database by operating system 5 ...Search condition setting means 6 ...Database access means 7 ...
- Source program conversion means 8...Conversion rule 9...Restriction violation detection means 10...Restriction rule 11...Restriction error list 12...Output source program

Claims (1)

【特許請求の範囲】 ソースプログラム毎の変換ルールおよび制限ルールを格
納したプログラム別ルールデータベースと、 オペレーティングシステム毎の変換ルールおよび制限ル
ールを格納したオペレーティングシステム別ルールデー
タベースと、 検索条件カード等により変換元および変換先のオペレー
ティングシステム名ならびにソースプログラムのプログ
ラムID等の検索条件を設定する検索条件設定手段と、 設定された検索条件に従い前記両ルールデータベースの
検索およびデータの入出力を行うデータベースアクセス
手段と、 前記両ルールデータベースより検索された変換ルールを
用いて前記ソースプログラムの変換を行うソースプログ
ラム変換手段と、 前記両ルールデータベースより検索された制限ルールを
用いて前記ソースプログラム中の制限違反の検出を行う
制限違反検出手段とを備えたことを特徴とするソースプ
ログラム移植方式。
[Claims] A rule database for each program that stores conversion rules and restriction rules for each source program, a rule database for each operating system that stores conversion rules and restriction rules for each operating system, and a conversion source using a search condition card or the like. and a search condition setting means for setting search conditions such as the name of the operating system to be converted and the program ID of the source program; and a database access means for searching the rule databases and inputting/outputting data according to the set search conditions. a source program conversion means for converting the source program using conversion rules retrieved from both rule databases; and detecting violation of restrictions in the source program using restriction rules retrieved from both rule databases. A source program porting method characterized by comprising a restriction violation detection means.
JP20873589A 1989-08-11 1989-08-11 Source program transplanting system Pending JPH0371341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20873589A JPH0371341A (en) 1989-08-11 1989-08-11 Source program transplanting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20873589A JPH0371341A (en) 1989-08-11 1989-08-11 Source program transplanting system

Publications (1)

Publication Number Publication Date
JPH0371341A true JPH0371341A (en) 1991-03-27

Family

ID=16561213

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20873589A Pending JPH0371341A (en) 1989-08-11 1989-08-11 Source program transplanting system

Country Status (1)

Country Link
JP (1) JPH0371341A (en)

Similar Documents

Publication Publication Date Title
JPH10232875A (en) Data base managing method and parallel data base managing system
JPH09319757A (en) Information retrieving system
JP2002099561A (en) Method and system for data conversion, and storage medium
JP2004348489A (en) Customer data management system, device, method, and program
JPH0371341A (en) Source program transplanting system
CN114416695A (en) Data splicing function migration method and device, computer equipment and storage medium
JPH1153383A (en) Plural database retrieval method and recording medium recording plural database retrieval program or the like
JPH04107628A (en) Back-up system for reuse of software
JP2000222410A (en) Thesaurus retrieving device and thesaurus retrieval system
JP2003177923A (en) Reserved word converting method for porting support system
JPH09179732A (en) Device for migrating minimum operation environment
JP3882835B2 (en) Database management method and parallel database management system
JP3087699B2 (en) Standard information simple input system and standard information simple input method
JP2009093239A (en) Unnecessary program component detection system
JPH04344932A (en) Distributed programming method
JPH10214194A (en) Class definition fetching system
JP2002041294A (en) Minimum operational environment migrating system
JPH04340625A (en) Output system for job separator
JPH10301808A (en) Test resource end batch management system
JPS63238622A (en) Relation retrieval system
JPH04145527A (en) System for taking-out program text for parts
JPH04260134A (en) Name mark managing system for language processing system
JPH09231116A (en) Database language re-issuing device
JPH09305684A (en) Form management method and information processing system for executing the method
JPH0340070A (en) Data base retrieving device