JPH0250725A - Subprogram retrieving system - Google Patents

Subprogram retrieving system

Info

Publication number
JPH0250725A
JPH0250725A JP20116788A JP20116788A JPH0250725A JP H0250725 A JPH0250725 A JP H0250725A JP 20116788 A JP20116788 A JP 20116788A JP 20116788 A JP20116788 A JP 20116788A JP H0250725 A JPH0250725 A JP H0250725A
Authority
JP
Japan
Prior art keywords
subprogram
search
control data
dynamic link
structure body
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
JP20116788A
Other languages
Japanese (ja)
Inventor
Shinji Yoshihara
吉原 信二
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 JP20116788A priority Critical patent/JPH0250725A/en
Publication of JPH0250725A publication Critical patent/JPH0250725A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To rapidly form a dynamic link by forming a subprogram retrieving structure body independently of a dynamic link control structure body and retrieving a dynamically linked subprogram by a binary tree retrieving method. CONSTITUTION:The subprogram retrieving structure body 6 formed independently of the dynamic link control structure body 5 registers subprogram control data indicators in the alphabetical order of program names so as to retrieve the subprogram control data of the structure body 5 by the binary tree retrieving method based upon program names. A retrieving structure body initializing means 1 initializes the structure body 60 and relates the body 6 with the structure body 5 and a subprogram retrieving method 2 retrieves a subprogram control data indicator from the structure body 6 by the binary tree retrieving method based upon program names. Consequently, the dynamically linked subprogram can be rapidly retrieved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラムの動的リンク方式に関し、特に動的
リンクされている副プログラムを検索する副プログラム
検索方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a dynamic program linking method, and more particularly to a subprogram search method for searching for dynamically linked subprograms.

〔従来の技術〕[Conventional technology]

従来の動的リンク方式では、副プログラムが動的リンク
された順番に副プログラムに関する副プログラム制御デ
ータが動的リンク制御構造体に登録され、動的リンク要
求および動的リンク解除要求が発生する毎に動的リンク
制御構造体が先頭から順に検索されて、要求対象の副プ
ログラムに関する副プログラム制御データが見つかれば
必要情報が動的リンク制御構造体から取得され、見つか
らなければ副プログラムの動的リンクが行われて動的リ
ンク制御構造体に副プログラム制御データが登録されて
いた。
In the conventional dynamic linking method, subprogram control data related to subprograms is registered in the dynamic link control structure in the order in which the subprograms are dynamically linked, and each time a dynamic link request or dynamic link release request occurs. The dynamic link control structure is searched sequentially from the beginning, and if subprogram control data related to the requested subprogram is found, the necessary information is obtained from the dynamic link control structure, and if not found, the subprogram dynamic link is performed. was performed and the subprogram control data was registered in the dynamic link control structure.

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

上述した従来の動的リンク方式では、動的リンク要求お
よび動的リンク解除要求が出されるたびに動的リンク制
御構造体が順に検索されるようになっているので、多数
の副プログラムが動的にリンクされている場合には副プ
ログラムを検索するために多くの時間がかかってしまう
という欠点がある。
In the conventional dynamic linking method described above, the dynamic link control structure is sequentially searched each time a dynamic link request or dynamic unlink request is issued, so many subprograms are dynamically linked. The disadvantage is that it takes a lot of time to search for subprograms when they are linked to.

本発明の目的は、上述の点に鑑み、動的リンクされてい
る副プログラムの検索に順次検索方法よりも速い二分木
検索方法を用いることにより、動的リンクされている副
プログラムの検索を高速に行うことができる副プログラ
ム検索方式を提供することにある。
In view of the above points, an object of the present invention is to speed up the search for dynamically linked subprograms by using a binary tree search method that is faster than the sequential search method for searching dynamically linked subprograms. The object of the present invention is to provide a subprogram search method that can be used to search for subprograms.

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

本発明の副プログラム検索方式は、電子計算機システム
で動的リンク要求および動的リンク解除要求のあった副
プログラムがすでに動的リンクされているかどうかを検
索する副プログラム検索方式において、副プログラム制
御データを含む動的リンク制御構造体と、この動的リン
ク制御構造体とは別に設けられ前記動的リンク制御構造
体の副プログラム制御データをプログラム名による二分
木検索方法で検索ができるように副プログラム制御デー
タ指示子をプログラム名のアルファベット類に登録する
副プログラム検索用構造体と、この副プログラム検索用
構造体を初期化して前記動的リンク制御構造体と関連付
ける検索用構造体初期化手段と、前記副プログラム検索
用構造体からプログラム名による二分木検索方法で副プ
ログラム制御データ指示子を検索する副プログラム検索
手段と、動的リンク要求時に前記副プログラム検索手段
で副プログラム制御データ指示子が見つからなかったと
きに副プログラム制御データ指示子を前記副プログラム
検索用構造体にプログラム名のアルファベット類となる
ように登録する副プログラム登録手段と、動的リンク解
除要求時に前記副プログラム検索手段で副プログラム制
御データ指示子が見つかったときに当該副プログラム制
御データ指示子を前記副プログラム検索用構造体からプ
ログラム名のアルファベット類を崩さないように削除す
る副プログラム削除手段とを有する。
The subprogram search method of the present invention is a subprogram search method for searching whether a subprogram for which a dynamic link request and a dynamic link release request have been made in a computer system has already been dynamically linked. a dynamic link control structure including a dynamic link control structure, and a subprogram that is provided separately from this dynamic link control structure so that the subprogram control data of the dynamic link control structure can be searched by a binary tree search method using a program name. a subprogram search structure for registering a control data indicator in the alphabetical order of a program name; a search structure initialization means for initializing the subprogram search structure and associating it with the dynamic link control structure; a subprogram search means for searching the subprogram control data indicator from the subprogram search structure using a binary tree search method using a program name; subprogram registration means for registering a subprogram control data indicator in the subprogram search structure so that it corresponds to the alphabetical order of the program name when the subprogram control data indicator is not found; and subprogram deletion means for deleting the subprogram control data indicator from the subprogram search structure without changing the alphabetical order of the program name when the control data indicator is found.

〔作用〕[Effect]

本発明の副プログラム検索方式では、動的リンク制御構
造体が副プログラム制御データを含み、動的リンク制御
構造体とは別に設けられた副プログラム検索用構造体が
動的リンク制御構造体の副プログラム制御データをプロ
グラム名による二分木検索方法で検索ができるように副
プログラム制御データ指示子をプログラム名のアルファ
ベット類に登録し、検索用構造体初期化手段が副プログ
ラム検索用構造体を初期化して動的リンク制御構造体と
関連付け、副プログラム検索手段が副プログラム検索用
構造体からプログラム名による二分木検索方法で副プロ
グラム制御データ指示子を検索し、副プログラム登録手
段が動的リンク要求時に副プログラム検索手段で副プロ
グラム制御データ指示子が見つからなかったときに副プ
ログラム制御データ指示子を副プログラム検索用構造体
にプログラム名のアルファベット類となるように登録し
、副プログラム削除手段が動的リンク解除要求時に副プ
ログラム検索手段で副プログラム制御データ指示子が見
つかったときに当該副プログラム制御データ指示子を副
プログラム検索用構造体からプログラム名のアルファベ
ット類を崩さないように削除する。
In the subprogram search method of the present invention, the dynamic link control structure includes subprogram control data, and the subprogram search structure provided separately from the dynamic link control structure is a subprogram search structure of the dynamic link control structure. A subprogram control data indicator is registered in the alphabetical order of the program name so that the program control data can be searched using the binary tree search method using the program name, and the search structure initialization means initializes the subprogram search structure. is associated with the dynamic link control structure, the subprogram search means searches for the subprogram control data indicator from the subprogram search structure using a binary tree search method using the program name, and the subprogram registration means When the subprogram control data indicator is not found by the subprogram search means, the subprogram control data indicator is registered in the subprogram search structure so that it corresponds to the alphabet of the program name, and the subprogram deletion means dynamically deletes the subprogram control data indicator. When a subprogram control data indicator is found by a subprogram search means at the time of a link release request, the subprogram control data indicator is deleted from a structure for subprogram search without changing the alphabetical order of the program name.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の一実施例の副プログラム検索方式の
構成を示すブロック図である0本実施例の副プログラム
検索方式は、検索用構造体初期化手段lと、副プログラ
ム検索手段2と、副プログラム登録手段3と、副プログ
ラム削除手段4と、動的リンク制御構造体5と、副プロ
グラム検索用構造体6とから構成されている。
FIG. 1 is a block diagram showing the configuration of a subprogram search method according to an embodiment of the present invention. , a subprogram registration means 3, a subprogram deletion means 4, a dynamic link control structure 5, and a subprogram search structure 6.

動的リンク制御構造体5は、第2図に示すように、検索
制御データ指示子501を含む動的リンク制御データ5
00と、副プログラム名503および副プログラムのエ
ントリポイント504を含む副プログラム制御データ5
02の配列とから構成されている。
As shown in FIG. 2, the dynamic link control structure 5 stores dynamic link control data 5 including a search control data indicator 501.
00, subprogram control data 5 including subprogram name 503 and subprogram entry point 504
02 array.

副プログラム検索用構造体6は、第2図に示すように、
有効指示子数601を含む検索制御データ600と、副
プログラム制御データ502を指している有効指示子数
601分の副プログラム制御データ指示子602の配列
とから構成されている。なお、副プログラム制御データ
指示子602は、指している副プログラム制御データ5
02中の副プログラム名503のアルファヘット順で第
2図において上から下に整列されている。
The subprogram search structure 6, as shown in FIG.
It is composed of search control data 600 including 601 valid indicators, and an array of subprogram control data indicators 602 with 601 valid indicators pointing to subprogram control data 502. Note that the subprogram control data indicator 602 indicates the subprogram control data 5 that it points to.
They are arranged from top to bottom in FIG. 2 in alphabetical order of the subprogram names 503 in 02.

第3図を参照すると、検索用構造体初期化手段1におけ
る処理は、副プログラム検索用構造体用エリア確保ステ
ップ31と、確保エリア先頭番地検索制御データ指示子
代入ステップ32と、有効指示手数初期化ステップ33
とからなる。
Referring to FIG. 3, the processing in the search structure initialization means 1 includes a subprogram search structure area reservation step 31, a reservation area first address search control data indicator assignment step 32, and an initialization of the number of effective instruction steps. transformation step 33
It consists of

第4図を参照すると、副プログラム検索手段2における
処理は、初期設定ステップ41と、有効指示子数“0”
判定ステップ42と、検索位IM演算ステップ43と、
検索位置Mおよび前回の検索位置M、と上限Jとの比較
ステップ44と、プログラム名(ロードモジュール名)
比較ステップ45と、上限Jへの検索位置Mの代入ステ
ップ46と、下限■への検索位置Mの代入ステップ47
と、下限Iと上限Jとの隣接判定ステップ48と、下限
!加算ステップ49と、検索位置M“1”設定ステップ
410とからなる。
Referring to FIG. 4, the processing in the subprogram search means 2 includes an initial setting step 41 and a setting of the number of effective designators as "0".
A determination step 42, a search position IM calculation step 43,
Comparison step 44 of search position M and previous search position M with upper limit J, and program name (load module name)
A comparison step 45, a step 46 of assigning the search position M to the upper limit J, and a step 47 of assigning the search position M to the lower limit ■
, the adjacency determination step 48 between the lower limit I and the upper limit J, and the lower limit! It consists of an addition step 49 and a search position M “1” setting step 410.

第5図を参照すると、副プログラム登録手段3における
処理は、副プログラム検索手段呼出しステップ51と、
検索結果判定ステップ52と、カウンタL初期設定ステ
ップ53と、カウンタLと検索位置Mとの比較ステップ
54と、副プログラム制御データ指示子移送ステップ5
5と、カウンタL減算ステップ56と、有効指示手数加
算ステップ57と、副プログラム制御データ指示子番地
代入ステップ58とからなる。
Referring to FIG. 5, the processing in the subprogram registration means 3 includes a subprogram search means calling step 51;
Search result determination step 52, counter L initialization step 53, comparison step 54 of counter L and search position M, sub program control data indicator transfer step 5
5, a counter L subtraction step 56, a valid instruction number addition step 57, and a subprogram control data indicator address assignment step 58.

第6図を参照すると、副プログラム削除手段4における
処理は、副プログラム検索手段呼出しステップ61と、
検索結果判定ステップ62と、カウンタに初期設定ステ
ップ63と、カウンタにと有効指示子数との比較ステッ
プ64と、副プログラム制御データ指示子移送ステップ
65と、カウンタに加算ステップ66と、有効指示手数
減算ステップ67と、副プログラム削除中止ステップ6
8とからなる。
Referring to FIG. 6, the processing in the subprogram deletion means 4 includes a subprogram search means calling step 61;
A search result determination step 62, a counter initialization step 63, a comparison step 64 of comparing the counter with the number of valid indicators, a subprogram control data indicator transfer step 65, an addition step 66 of the counter, and a step 64 of comparing the counter with the number of valid indicators. Subtraction step 67 and subprogram deletion cancellation step 6
It consists of 8.

次に、このように構成された本実施例の副プログラム検
索方式の動作について説明する。
Next, the operation of the subprogram search method of this embodiment configured as described above will be explained.

初回の動的リンク要求があると、検索用構造体初期化手
段lは、副プログラム検索用構造体6のエリアを確保し
て(ステップ31)、確保したエリアの先頭番地を動的
リンク制御構造体5の検索制御データ指示子501に代
入して(ステップ32)、副プログラム検索用構造体6
の有効指示子数601をOにする(ステップ33)。
When there is an initial dynamic link request, the search structure initialization means l secures an area for the subprogram search structure 6 (step 31), and sets the first address of the secured area to the dynamic link control structure. Subprogram search structure 6 is assigned to the search control data indicator 501 of the structure 5 (step 32).
The number of effective indicators 601 is set to O (step 33).

また、動的リンク要求および動的リンク解除要求がある
と、副プログラム登録手段3および副プログラム削除手
段4の先頭(ステップ51および61)で副プログラム
検索手段2が起動される。
Further, when there is a dynamic link request and a dynamic link release request, the subprogram search means 2 is activated at the beginning of the subprogram registration means 3 and the subprogram deletion means 4 (steps 51 and 61).

副プログラム検索手段2は、動的リンク制御構造体5の
検索制御データ指示子501に従って副プログラム検索
用構造体6を参照して検索範囲の下限(第2図において
上側)■を1に、上限(第2図において下側)Jを有効
指示子数601に、検索位置(検索範囲の中心位置)M
を上限Jに、前回の検索位置M0を0に設定して初期化
しくステップ41)、有効指示子数601  (検索位
置M)が0であるか否かを判定する(ステップ42)。
The subprogram search means 2 refers to the subprogram search structure 6 in accordance with the search control data indicator 501 of the dynamic link control structure 5, and sets the lower limit (upper side in FIG. 2) of the search range to 1 and sets the upper limit to 1. (Bottom side in Figure 2) J is the number of effective designators 601, search position (center position of search range) M
is the upper limit J and the previous search position M0 is set to 0 to initialize (step 41), and it is determined whether the number of valid indicators 601 (search position M) is 0 (step 42).

有効指示子数601がOでない場合には、副プロダラム
検索手段2は、二分木検索方法による検索位置M= (
1+J)/2 (小数点以下切捨て)を求め(ステップ
43)、検索位iMが上限Jと等しくかつ前回の検索位
置M0が上限Jと等しいか否かを判定する(ステップ4
4)。
When the number of effective designators 601 is not O, the sub-product search means 2 uses the binary tree search method to find the search position M= (
1+J)/2 (rounded down to the nearest whole number) (step 43), and determines whether the search position iM is equal to the upper limit J and the previous search position M0 is equal to the upper limit J (step 4).
4).

検索位置Mが上限Jと等しくないかまたは前回の検索位
置M0が上限Jと等しくなければ、副プログラム検索手
段2は、検索位置Mにある副プログラム制御データ指示
子602が指す副プログラム制御データ502中の副プ
ログラム名503と検索しようとするプログラム名とを
比較する(ステップ45)。
If the search position M is not equal to the upper limit J or the previous search position M0 is not equal to the upper limit J, the sub-program search means 2 retrieves the sub-program control data 502 pointed to by the sub-program control data indicator 602 located at the search position M. The subprogram name 503 inside is compared with the name of the program to be searched (step 45).

副プログラム制御データ502中の副プログラム名50
3の方が検索しようとするプログラム名よりも大きけれ
ば、副プログラム検索手段2は、上限Jを検索位置Mに
持ってきて、前回の検索位置M0に検索位置Mを設定し
、終了状態LC(副プログラム制御データ指示子602
を検索位置Mに登録する場合には0、検索位置Mの次に
登録する場合には1となる判別子)を0に設定する(ス
テップ46)。そして、下限■が上限Jと隣接する(■
+1=J)か否かを判定しくステップ48)、下限lが
上限Jと隣接していれば下限Iを1つ更新した後(下限
■を上限Jに一致させた後)にステップ42に戻り、下
限Iが上限Jと隣接していなければただちにステップ4
2に戻る。
Subprogram name 50 in subprogram control data 502
3 is larger than the program name to be searched, the subprogram search means 2 brings the upper limit J to the search position M, sets the search position M to the previous search position M0, and returns to the end state LC ( Subprogram control data indicator 602
is set to 0 (step 46). Then, the lower limit ■ is adjacent to the upper limit J (■
+1=J) or not (step 48), and if the lower limit l is adjacent to the upper limit J, the lower limit I is updated by one (after the lower limit ■ is made equal to the upper limit J), and then the process returns to step 42. , if the lower limit I is not adjacent to the upper limit J, immediately proceed to step 4.
Return to 2.

ステップ45で副プログラム制御データ502中の副プ
ログラム名503の方が検索しようとするプログラム名
よりも小さければ、副プログラム検索手段2は、下限I
を検索位置Mに持ってきて、前回の検索位置M0に検索
位置Mを設定し、終了状態LCを1に設定して(ステッ
プ47)、ステップ42に戻る。
If the subprogram name 503 in the subprogram control data 502 is smaller than the program name to be searched in step 45, the subprogram search means 2 uses the lower limit I
is brought to the search position M, the search position M is set to the previous search position M0, the end state LC is set to 1 (step 47), and the process returns to step 42.

ステップ45で副プログラム制御データ502中の副プ
ログラム名503と検索しようとするプログラム名とが
等しければ、副プログラム検索手段2は、副プログラム
が見つかったとして処理を終了する。
If the subprogram name 503 in the subprogram control data 502 and the program name to be searched are equal in step 45, the subprogram search means 2 concludes that the subprogram has been found and ends the process.

ステップ44で検索位置Mが上限Jと等しくかつ前回の
検索位置M0が上限Jと等しければ、副プログラム検索
手段2は、副プログラムが見つからなかったとして処理
を終了する。
If the search position M is equal to the upper limit J and the previous search position M0 is equal to the upper limit J at step 44, the subprogram search means 2 concludes that the subprogram has not been found and ends the process.

ステップ42で有効指示子数601が0である場合には
、副プログラム検索手段2は、検索位置Mを1にし、最
終状態LCを1にして(ステップ410)、副プログラ
ムが見つからなかったとして処理を終了する。
If the number of valid designators 601 is 0 in step 42, the subprogram search means 2 sets the search position M to 1, sets the final state LC to 1 (step 410), and processes the subprogram as not found. end.

動的リンク要求があると、副プログラム登録手段3は、
まず副プログラム検索手段2を適用して(ステ・7プ5
1)、副プログラムが見つかったか否かを判定する(ス
テップ52)。
When there is a dynamic link request, the subprogram registration means 3:
First, apply subprogram search means 2 (step 7, step 5).
1) Determine whether a subprogram has been found (step 52).

副プログラムが見つからなかったと判定されたときには
、副プログラム登録手段3は、カウンタLに有効指示子
数601を設定しくステップ53)、カウンタLが検索
位置M以上か否かを判定する(ステップ54)。
When it is determined that the subprogram is not found, the subprogram registration means 3 sets the number of valid designators 601 to the counter L (step 53), and determines whether the counter L is equal to or greater than the search position M (step 54). .

カウンタLが検索位置M以上であれば、副プログラム登
録手段3は、L番目の副プログラム制御データ指示子6
02を(L+1)番目の副プログラム制御データ指示子
602に移送しくステップ55)、カウンタLを1つ減
算した後に(ステップ56)、ステップ54に戻る。
If the counter L is greater than or equal to the search position M, the sub-program registration means 3 sends the L-th sub-program control data indicator 6
02 to the (L+1)th sub-program control data indicator 602 (step 55), and after decrementing the counter L by one (step 56), the process returns to step 54.

ステップ54〜56の繰返しにより、有効指示子数60
1が示す位置から検索位置Mまでの副プログラム制御デ
ータ指示子602が順次1つずつ上限側(第2図におい
て下側)に移送される。
By repeating steps 54 to 56, the number of effective designators reaches 60.
The sub-program control data indicators 602 from the position indicated by 1 to the search position M are sequentially transferred one by one to the upper limit side (lower side in FIG. 2).

ステップ54でカウンタLが検索位置M以上でなくなれ
ば、副プログラム登録手段3は、有効指示子数601に
1を加えて(ステップ57)、(M+LC)番目の副プ
ログラム制御データ指示子602に今回動的リンクされ
た副プログラムに関する副プログラム制御データ502
の先頭番地を代入して(ステップ58)、処理を終了す
る。
If the counter L is no longer equal to or greater than the search position M in step 54, the subprogram registration means 3 adds 1 to the number of valid indicators 601 (step 57), and sets the (M+LC)th subprogram control data indicator 602 to the current Subprogram control data 502 for dynamically linked subprograms
(step 58), and the process ends.

また、ステップ52で副プログラムが見つかったと判定
されたときには、副プログラム登録手段3は、処理を終
了する。
Further, when it is determined in step 52 that the subprogram has been found, the subprogram registration means 3 ends the process.

動的リンク解除要求があると、副プログラム削除手段4
は、副プログラム検索手段2を適用して(ステップ61
)、副プログラムが見つかったか否かを判定する(ステ
、プロ2)。
When there is a dynamic link release request, the subprogram deletion means 4
, by applying the subprogram search means 2 (step 61
), determine whether the subprogram has been found (Step 2).

副プログラムが見つかったと判定されたときには、副プ
ログラム削除手段4は、カウンタKに副プログラム検索
手段2での検索位置Mを初期設定しくステップ63)、
カウンタKが有効指示子数601と一致するか否かを判
定する(ステップ64)。
When it is determined that the subprogram has been found, the subprogram deletion means 4 initializes the search position M in the subprogram search means 2 in the counter K (step 63);
It is determined whether the counter K matches the number of valid indicators 601 (step 64).

カウンタKが有効指示子数601と−敗しなければ、副
プログラム削除手段4は、K番目の副プログラム制御デ
ータ指示子602に(K+1)番目の副プログラム制御
データ指示子602を移送して(ステップ65)、カウ
ンタKを1つ加算した後に(ステップ66)、ステップ
64に戻る。
If the counter K does not exceed the number of valid indicators 601, the subprogram deletion means 4 transfers the (K+1)th subprogram control data indicator 602 to the Kth subprogram control data indicator 602 and ( Step 65), after incrementing the counter K by one (step 66), the process returns to step 64.

ステップ64〜66の繰返しにより、検索位置Mの次の
位置から有効指示子数601が示す位置までの副プログ
ラム制御データ指示子602が順次1つずつ下限側(第
2図において上側)に移送される。
By repeating steps 64 to 66, the subprogram control data indicators 602 from the position next to the search position M to the position indicated by the number of valid indicators 601 are sequentially transferred one by one to the lower limit side (upper side in FIG. 2). Ru.

ステップ64でカウンタKが有効指示子数601 と一
致すれば、副プログラム削除手段4は、有効指示子数6
01を1つ減算して(ステップ67)、処理を終了する
If the counter K matches the number of valid designators 601 in step 64, the subprogram deletion means 4 deletes the number of valid designators 601.
01 is subtracted by one (step 67), and the process ends.

また、ステップ62で副プログラムが見つからなかった
と判定されたときには、副プログラム削除手段4は、副
プログラムの削除を中止して(ステップ68)、処理を
終了する。
Further, when it is determined in step 62 that the subprogram is not found, the subprogram deletion means 4 stops deleting the subprogram (step 68), and ends the process.

(発明の効果〕 以上説明したように本発明は、動的リンク制御構造体と
は別に副プログラム検索用構造体を設けて動的リンクさ
れている副プログラムを順次検索方法よりも速い二分木
検索方法を用いて検索することにより、動的リンクの高
速化を図ることができるという効果がある。
(Effects of the Invention) As explained above, the present invention provides a subprogram search structure in addition to the dynamic link control structure, and performs a binary tree search that is faster than the sequential search method for dynamically linked subprograms. Searching using this method has the effect of increasing the speed of dynamic linking.

なお、動的リンク制御構造体は従来のままなので、従来
の動的リンク方式に対する修正を必要最小限の狭い範囲
に抑えることができる。
Note that, since the dynamic link control structure remains the same as before, modifications to the conventional dynamic link system can be kept to the necessary minimum and narrow range.

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

第1図は本発明の−・実施例の副プログラム検索方式の
構成を示すプ[1ツク図、 第2図は第1図中の動的リンク制御構造体と副プログラ
ム検索用構造体との関連を示す図、第3図は第1図中の
検索用構造体初期化手段の処理を示す流れ図、 第4図は第1図中の副プログラム検索手段の処理を示す
流れ図、 第5図は第1図中の副プログラム登録手段の処理を示す
流れ図、 第6図は第1図中の副プログラム削除手段の処理を示す
流れ図である。 図において、 ■・・・検索用構造体初期化手段、 2・・・副プログラム検索手段、 3・・・副プログラム登録手段、 4・・・副プログラム削除手段、 5・・・動的リンク制御構造体、 6・・・副プログラム検索用構造体、 500  ・・動的リンク制御データ、501  ・・
検索制御データ指示子、502  ・・副プログラム制
御データ、503 ・・副プログラム名、 504  ・・エントリポイント、 600  ・・検索制御データ、 601  ・・有効指示子数、 602  ・・副プログラム制御データ指示子である。 第1図 第 図 梗宗用構苗イ本防虹化十P父1 畠j17・ロク“ラムpト臣4492
FIG. 1 is a block diagram showing the configuration of a subprogram search method according to an embodiment of the present invention, and FIG. 3 is a flow chart showing the processing of the search structure initialization means in FIG. 1, FIG. 4 is a flow chart showing the processing of the subprogram search means in FIG. 1, and FIG. 5 is a flow chart showing the processing of the subprogram search means in FIG. FIG. 6 is a flowchart showing the processing of the subprogram registration means in FIG. 1, and FIG. 6 is a flowchart showing the processing of the subprogram deletion means in FIG. In the figure, ■...Search structure initialization means, 2...Sub program search means, 3...Sub program registration means, 4...Sub program deletion means, 5...Dynamic link control Structure, 6...Subprogram search structure, 500...Dynamic link control data, 501...
Search control data indicator, 502...Subprogram control data, 503...Subprogram name, 504...Entry point, 600...Search control data, 601...Number of valid indicators, 602...Subprogram control data instruction It is a child. Fig. 1 Fig. Illustrated diagram of the construction of the structure and seedlings of the book of anti-rainbow 10P father 1 Hatake J17 Roku "Lamb P Toomi" 4492

Claims (1)

【特許請求の範囲】 電子計算機システムで動的リンク要求および動的リンク
解除要求のあった副プログラムがすでに動的リンクされ
ているかどうかを検索する副プログラム検索方式におい
て、 副プログラム制御データを含む動的リンク制御構造体と
、 この動的リンク制御構造体とは別に設けられ前記動的リ
ンク制御構造体の副プログラム制御データをプログラム
名による二分木検索方法で検索ができるように副プログ
ラム制御データ指示子をプログラム名のアルファベット
順に登録する副プログラム検索用構造体と、 この副プログラム検索用構造体を初期化して前記動的リ
ンク制御構造体と関連付ける検索用構造体初期化手段と
、 前記副プログラム検索用構造体からプログラム名による
二分木検索方法で副プログラム制御データ指示子を検索
する副プログラム検索手段と、動的リンク要求時に前記
副プログラム検索手段で副プログラム制御データ指示子
が見つからなかったときに副プログラム制御データ指示
子を前記副プログラム検索用構造体にプログラム名のア
ルファベット順となるように登録する副プログラム登録
手段と、 動的リンク解除要求時に前記副プログラム検索手段で副
プログラム制御データ指示子が見つかったときに当該副
プログラム制御データ指示子を前記副プログラム検索用
構造体からプログラム名のアルファベット順を崩さない
ように削除する副プログラム削除手段と を有することを特徴とする副プログラム検索方式。
[Claims] In a subprogram search method for searching whether a subprogram for which a dynamic link request and a dynamic link release request have been made in a computer system has already been dynamically linked, a link control structure, and a subprogram control data instruction provided separately from the dynamic link control structure so that the subprogram control data of the dynamic link control structure can be searched by a binary tree search method using a program name. a subprogram search structure for registering children in alphabetical order of program names; a search structure initialization means for initializing this subprogram search structure and associating it with the dynamic link control structure; and the subprogram search. a subprogram search means for searching a subprogram control data indicator from a program name structure using a binary tree search method using a program name; a subprogram registration means for registering subprogram control data indicators in the subprogram search structure in alphabetical order of program names; and a subprogram control data indicator for the subprogram search means when requesting dynamic link release. 1. A subprogram search method, comprising: subprogram deletion means for deleting the subprogram control data indicator from the subprogram search structure when a subprogram control data indicator is found without changing the alphabetical order of program names.
JP20116788A 1988-08-12 1988-08-12 Subprogram retrieving system Pending JPH0250725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20116788A JPH0250725A (en) 1988-08-12 1988-08-12 Subprogram retrieving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20116788A JPH0250725A (en) 1988-08-12 1988-08-12 Subprogram retrieving system

Publications (1)

Publication Number Publication Date
JPH0250725A true JPH0250725A (en) 1990-02-20

Family

ID=16436479

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20116788A Pending JPH0250725A (en) 1988-08-12 1988-08-12 Subprogram retrieving system

Country Status (1)

Country Link
JP (1) JPH0250725A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997030552A1 (en) * 1996-02-19 1997-08-21 He Holdings, Inc. Doing Business As Hughes Electronics Method and apparatus for sorting channel guides based on call sign

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997030552A1 (en) * 1996-02-19 1997-08-21 He Holdings, Inc. Doing Business As Hughes Electronics Method and apparatus for sorting channel guides based on call sign

Similar Documents

Publication Publication Date Title
WO2006007272A2 (en) Functional operations for accessing and/or building interlocking trees datastores to enable their use with applications software
JPH0250725A (en) Subprogram retrieving system
JPH02297670A (en) Data base retrieving system
JPH0644309A (en) Data base managing system
JP2740238B2 (en) File exclusive control unit
JP2690648B2 (en) Network address management device
JPH0456344B2 (en)
JPH0635774A (en) Data base management system
JPH02176838A (en) Record control system
JPS63128429A (en) Method and device for parallel join processing
JP3341513B2 (en) Tag number management method
JP2726743B2 (en) CAD drawing management system
JPH0619768A (en) Duplicate data update system
JPH0283640A (en) Data base updating method
JPS63217446A (en) Buffer control system
JPS63196945A (en) Knowledge expression management system
JPH0744576A (en) Data management system
JPH0812630B2 (en) Recovery processor
JPH04120628A (en) Reserved word maintaining and managing system
JPH0375873A (en) Data base processing system
JPS63291119A (en) Data processor
JPH07129449A (en) Commitment control method
JPS61127046A (en) Control system for prefetching from data base
JPS63285631A (en) Updating and processing system for index file
JPH03276238A (en) Record control system