JPH0520033A - Method and device for program execution - Google Patents
Method and device for program executionInfo
- Publication number
- JPH0520033A JPH0520033A JP3172096A JP17209691A JPH0520033A JP H0520033 A JPH0520033 A JP H0520033A JP 3172096 A JP3172096 A JP 3172096A JP 17209691 A JP17209691 A JP 17209691A JP H0520033 A JPH0520033 A JP H0520033A
- Authority
- JP
- Japan
- Prior art keywords
- program
- application program
- application programs
- storing
- memory
- 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
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、各種アプリケーション
・プログラムを複数記憶して実行できるプログラム実行
方法及び装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program execution method and apparatus capable of storing and executing various application programs.
【0002】[0002]
【従来の技術】従来、例えばハンディターミナル等のよ
うに、ハードディスク等の外部記憶装置(2次記憶装
置)を有していない実行専用形の小型情報処理装置にお
いて、アプリケーション・プログラムをロードして実行
させる方式は、一般的な2次記憶装置を有するパーソナ
ル・コンピュータ等と同じ方式を用いている。即ち、一
般的なパーソナルコンピュータでは、アプリケーション
・プログラムは、2次記憶装置から主記憶装置上にロー
ドされて実行され、このとき実行時ライブラリも各アプ
リケーション・プログラム毎に結合されて2次記憶装置
より主記憶装置にロードされる。ハンディターミナル等
でもこれと同様にアプリケーションプログラムと実行時
ライブラリを結合したものを主記憶にロードしている。2. Description of the Related Art Conventionally, an application program is loaded and executed in a small-size information processing apparatus such as a handy terminal which does not have an external storage device (secondary storage device) such as a hard disk. The system used is the same as that of a personal computer having a general secondary storage device. That is, in a general personal computer, the application program is loaded from the secondary storage device onto the main storage device and executed. At this time, the run-time library is also linked to each application program and stored in the secondary storage device. Loaded into main memory. In a handy terminal or the like, a combination of an application program and a runtime library is loaded in the main memory similarly.
【0003】[0003]
【発明が解決しようとする課題】近年、メモリの価格の
低下に伴って小型の情報処理装置にもパソコン並の容量
のメモリが搭載されたものが出現してきている。このよ
うな情報処理装置では、メモリに同時に格納できるアプ
リケーション・プログラムの数が増大するため、各アプ
リケーション・プログラム毎に結合されている実行時ラ
イブラリも同様に複数格納されることになる。しかし、
このような小型の情報処理装置のメモリ、一般的なパー
ソナル・コンピュータと同様に、各アプリケーション・
プログラムに対応してそれぞれの実行ライブラリが記憶
されると、メモリの利用効率が悪くなる。In recent years, as the price of memory has decreased, a small-sized information processing apparatus equipped with a memory having the same capacity as a personal computer has appeared. In such an information processing apparatus, since the number of application programs that can be stored in the memory at the same time increases, a plurality of runtime libraries combined for each application program are also stored. But,
The memory of such a small information processing device, as well as a general personal computer, each application
If each execution library is stored in correspondence with the program, the efficiency of memory usage becomes poor.
【0004】本発明は上記従来例に鑑みてなされたもの
で、各アプリケーション・プログラムに結合されている
実行時ライブラリを1つにまとめて記憶することによ
り、メモリの利用効率を高めて処理を行うことができる
プログラム実行方法及び装置を提供することを目的とす
る。The present invention has been made in view of the above-mentioned conventional example. By collectively storing the runtime library combined with each application program into one, the utilization efficiency of the memory is improved and processing is performed. It is an object of the present invention to provide a program execution method and device capable of executing the program.
【0005】[0005]
【課題を解決するための手段】上記目的を達成するため
に本発明のプログラム実行装置は以下のような構成を備
える。即ち、各種アプリケーション・プログラムを複数
記憶して実行できるプログラム実行装置であって、各ア
プリケーション・プログラムに対応する実行時ライブラ
リを独立したモジュールとして記憶する記憶手段と、実
行時ライブラリのアドレスを各アプリケーション・プロ
グラムに対応して記憶するアドレス記憶手段と、各アプ
リケーション・プログラムの実行時、前記アドレス記憶
手段に記憶されたアドレスを参照して、実行中のアプリ
ケーション・プログラムに対応する実行時ライブラリを
読出して実行させる制御手段ととを有する。In order to achieve the above object, a program execution device of the present invention has the following configuration. That is, a program execution device capable of storing and executing a plurality of various application programs, and storing means for storing a runtime library corresponding to each application program as an independent module and an address of the runtime library for each application program. The address storage means for storing the program and the execution time of each application program are referred to, and the runtime library corresponding to the application program being executed is read and executed by referring to the address stored in the address storage means. And control means for controlling the control.
【0006】上記目的を達成するために本発明のプログ
ラム実行方法は以下のような工程を備える。即ち、各種
アプリケーション・プログラムを複数記憶して実行でき
るプログラム実行方法であって、各種アプリケーション
・プログラムをそれぞれ独立して記憶する工程と、前記
アプリケーション・プログラムのそれぞれに対応する実
行時ライブラリを独立した1つのモジュールとして記憶
する工程と、各アプリケーション・プログラムと実行時
ライブラリとを関連付ける工程と、各アプリケーション
・プログラムの実行時、実行中のアプリケーション・プ
ログラムに対応する実行時ライブラリを読出して実行さ
せる工程とを有する。In order to achieve the above object, the program executing method of the present invention comprises the following steps. That is, it is a program execution method capable of storing and executing a plurality of various application programs, wherein a step of independently storing various application programs and an independent runtime library corresponding to each of the application programs are provided. Storing as one module, associating each application program with the runtime library, and executing each application program, and reading and executing the runtime library corresponding to the running application program. Have.
【0007】[0007]
【作用】以上の構成において、各アプリケーション・プ
ログラムに対応する実行時ライブラリを独立したモジュ
ールとして記憶しておくとともに、実行時ライブラリの
アドレスを各アプリケーション・プログラムに対応して
記憶する。そして、各アプリケーション・プログラムの
実行時、アドレス記憶手段に記憶されたアドレスを参照
して、実行中のアプリケーション・プログラムに対応す
る実行時ライブラリを読出して実行するように動作す
る。In the above structure, the runtime library corresponding to each application program is stored as an independent module, and the address of the runtime library is stored corresponding to each application program. When each application program is executed, the address stored in the address storage means is referred to so that the runtime library corresponding to the application program being executed is read and executed.
【0008】[0008]
【実施例】以下、添付図面を参照して本発明の好適な実
施例を詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will now be described in detail with reference to the accompanying drawings.
【0009】図1は本実施例の2次記憶装置を持たない
小型の情報処理装置の概略構成を示すブロック図であ
る。FIG. 1 is a block diagram showing the schematic arrangement of a small information processing apparatus having no secondary storage device according to this embodiment.
【0010】図1において、1はCPUで、システムR
OM8或いはメモリ6に記憶されたプログラムに従っ
て、この装置全体の動作を制御している。2は表示器
で、各種処理結果或いはオペレータへのメッセージなど
を表示する。3はキーボードで、オペレータにより操作
され、各種データや機能指示等を入力する。4は電源回
路で、この装置に電力を供給している。5はこの装置の
主電源である電池である。6はメモリで、例えばRAM
等で構成され、各種アプリケーション・プログラムなど
を記憶している。7はバックアップ用電池で、主電源の
電池5が消耗した時でもメモリ6の内容を保持するため
に電力をメモリ6に供給している。8はシステムROM
で、この装置のシステム・プログラムを格納している。
9は通信ポートで、上位コンピュータ等と接続され、通
信制御を実行している。この通信ポート9を介して、他
のコンピュータよりアプリケーション・プログラムを受
信して、メモリ6にロードすることができる。10はア
プリケーション毎に必要な拡張デバイスを接続する拡張
ポートである。In FIG. 1, reference numeral 1 is a CPU, which is a system R.
The operation of the entire apparatus is controlled according to the program stored in the OM 8 or the memory 6. A display device 2 displays various processing results or messages to the operator. A keyboard 3 is operated by an operator to input various data and function instructions. A power supply circuit 4 supplies power to this device. 5 is a battery which is the main power source of this device. 6 is a memory, for example RAM
Etc., and stores various application programs. A backup battery 7 supplies electric power to the memory 6 so as to retain the contents of the memory 6 even when the main power supply battery 5 is exhausted. 8 is a system ROM
And stores the system program of this device.
A communication port 9 is connected to a host computer or the like and executes communication control. An application program can be received from another computer via the communication port 9 and loaded into the memory 6. An expansion port 10 connects an expansion device required for each application.
【0011】以上の構成により、装置の起動時はROM
8に記憶されたシステム・プログラムにより、CPU1
が装置全体を制御する。そして、このシステムROM8
に記憶された通信プログラムにより、通信ポート9を介
してアプリケーション・プログラムがロードされると、
メモリ6に記憶される。そして、これ以降は、このアプ
リケーション・プログラムに従って装置が動作すること
になる。With the above configuration, the ROM is activated when the apparatus is activated.
CPU 1 by the system program stored in
Controls the entire device. And this system ROM8
When the application program is loaded through the communication port 9 by the communication program stored in
It is stored in the memory 6. After that, the device operates according to this application program.
【0012】図2は本実施例の情報処理装置におけるメ
モリ6上のメモリ状態を示す図である。FIG. 2 is a diagram showing a memory state on the memory 6 in the information processing apparatus of this embodiment.
【0013】図2において、11はシステムROM8に
格納されているシステムプログラム用の作業領域、1
2,13は拡張ポート10に接続される拡張デバイスを
制御するためのプログラム領域(ドライバ・プログラム
(1)(2))を示している。14は本実施例の実行方式に従
った実行時ライブラリ、15〜18は本実施例による実
行方式に従った種々のアプリケーション・プログラム
(1) 〜(n) 、19は空き領域を示している。In FIG. 2, reference numeral 11 denotes a work area for a system program stored in the system ROM 8 and 1
2 and 13 are program areas (driver programs for controlling expansion devices connected to the expansion port 10).
(1) (2)) is shown. Reference numeral 14 is a runtime library according to the execution method of the present embodiment, and 15 to 18 are various application programs according to the execution method of the present embodiment.
(1) to (n) and 19 indicate empty areas.
【0014】まず、アプリケーション・プログラム(1)
(通常はメイン処理である)の起動が指示されると、シ
ステム・プログラムは実行時ライブラリ14をサーチし
て、ロードされているアドレスをシステム作業域11に
セーブする。次に各アプリケーション・プログラムの実
行時、アプリケーション・プログラム(1) 〜(n) 15〜
18より、種々の実行時ライブラリの呼び出しの依頼を
受けると、システムプログラムは、システム作業域11
にセーブしている実行時ライブラリ14のロードアドレ
スをベースとして、各々のライブラリのエントリを呼び
出す。First, the application program (1)
When the activation of (normally the main processing) is instructed, the system program searches the runtime library 14 and saves the loaded address in the system work area 11. Next, when executing each application program, the application program (1)-(n) 15-
Upon receiving a request for calling various runtime libraries from the system 18, the system program executes the system work area 11
The entry of each library is called based on the load address of the runtime library 14 saved in the table.
【0015】従来は実行時ライブラリ14がそれぞれの
アプリケーション・プログラム(1)〜(n) に結合されて
いたので、各アプリケーション・プログラム毎に実行時
ライブラリが同じ数だけ記憶されていた。このため、前
述の例で、各アプリケーション・プログラムが同じ実行
時タスクを必要とすると、同じ実行時タスクがn個メモ
リ6上にロードされることになっていた。しかし、この
実施例のように構成することにより、共通する実行時ラ
イブラリを1個だけ記憶しておけば良いため、メモリの
利用効率が向上する。Conventionally, since the run-time library 14 is connected to each of the application programs (1) to (n), the same number of run-time libraries are stored for each application program. Therefore, in the above-mentioned example, if each application program requires the same runtime task, n the same runtime task is loaded on the memory 6. However, by configuring as in this embodiment, since it is sufficient to store only one common runtime library, the memory utilization efficiency is improved.
【0016】尚、この効率は、メモリ容量が大きくな
り、ロードされるアプリケーション・プログラムの数が
多くなればなるほど高くなる。Note that this efficiency becomes higher as the memory capacity becomes larger and the number of application programs loaded becomes larger.
【0017】このような、システム・プログラムの処理
を示したのが図4のフローチャートである。The process of the system program is shown in the flow chart of FIG.
【0018】ステップS1でアプリケーション・プログ
ラム(1) が起動されるとステップS2に進み、実行時ラ
イブラリ14をサーチして、ステップS3で、その実行
時ライブラリのアドレスをシステム作業域11に格納す
る。こうしてステップS4でアプリケーション・プログ
ラムより、実行時ライブラリ14の呼び出しが指示され
るのを待ち、その呼出しが指示されるとステップS5に
進み、システム作業域11に記憶している実行時ライブ
ラリ14のロードアドレスを読出す。そしてステップS
6に進み、そのアドレスを基にして、対応する実行時ラ
イブラリ14のエントリアドレスを決定する。次にステ
ップS7に進み、そのライブラリを実行する。When the application program (1) is started in step S1, the process proceeds to step S2, the runtime library 14 is searched, and the address of the runtime library is stored in the system work area 11 in step S3. Thus, in step S4, the application program waits for an instruction to call the runtime library 14, and when the call is instructed, the process proceeds to step S5 to load the runtime library 14 stored in the system work area 11. Read address. And step S
6, the entry address of the corresponding runtime library 14 is determined based on the address. Next, in step S7, the library is executed.
【0019】なお、実行時ライブラリは固定的なもので
あるので、パラメータを引き渡すことで種々の要求に対
応できるように作成して、システムROM8の中にシス
テム・プログラムとともに格納することもできる。これ
により、図3に示すようにメモリ6上に実行時ライブラ
リ14をロードする必要がなくなる。これにより、アプ
リケーション・プログラムが自由に使える空き領域20
が更に広がる。これにより、メモリの利用効率をより一
層高めることができる。Since the run-time library is fixed, it can be created by passing parameters to meet various requests and stored in the system ROM 8 together with the system program. This eliminates the need to load the runtime library 14 onto the memory 6 as shown in FIG. As a result, the free area 20 where the application program can be used freely
Spread further. Thereby, the utilization efficiency of the memory can be further improved.
【0020】以上説明したように本実施例によれば、主
記憶装置しか有しない情報処理装置のメモリ利用効率を
向上させることができ、より多くの種類のアプリケーシ
ョン・プログラムケーションに対応できる。As described above, according to the present embodiment, it is possible to improve the memory utilization efficiency of the information processing device having only the main storage device, and it is possible to cope with more kinds of application programs.
【0021】尚、本発明は複数の機器から構成されるシ
ステムに適用しても、1つの機器からなる装置に適用し
ても良い。また、本発明はシステム或は装置に、本発明
を実施するプログラムを供給することによって達成され
る場合にも適用できることはもちろんである。The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Further, the present invention can of course be applied to a case where the present invention is achieved by supplying a program for implementing the present invention to a system or an apparatus.
【0022】[0022]
【発明の効果】以上説明したように本発明によれば、各
アプリケーション・プログラムに結合されている実行時
ライブラリを1つにまとめて記憶することにより、メモ
リの利用効率を高めて処理を行うことができる効果があ
る。As described above, according to the present invention, the runtime library combined with each application program is collectively stored in one to improve the utilization efficiency of the memory and perform the processing. There is an effect that can be.
【図1】本実施例の小型情報処理装置の概略構成を示す
ブロック図である。FIG. 1 is a block diagram showing a schematic configuration of a small-sized information processing apparatus of this embodiment.
【図2】本実施例のプログラム実行方式に従ったメモリ
の管理状態を示す図である。FIG. 2 is a diagram showing a memory management state according to the program execution method of the present embodiment.
【図3】本発明の他の実施例のメモリの利用効率を向上
させたメモリの管理状態の一例を示す図である。FIG. 3 is a diagram showing an example of a memory management state with improved memory utilization efficiency according to another embodiment of the present invention.
【図4】本実施例の小型情報処理装置のシステム・プロ
グラムによる処理を示すフローチャートである。FIG. 4 is a flowchart showing processing by a system program of the small-sized information processing apparatus of this embodiment.
1 CPU
2 表示器
3 キーボード
4 電源回路
5 主電池
6 メモリ
7 バックアップ電池
8 システムROM
9 通信ボード
10 拡張ボード
11,30 システム作業域
14 実行時ライブラリ
15,16,17,18 アプリケーション・プログラ
ム
19,31 空き領域1 CPU 2 Display 3 Keyboard 4 Power Supply Circuit 5 Main Battery 6 Memory 7 Backup Battery 8 System ROM 9 Communication Board 10 Expansion Board 11, 30 System Work Area 14 Runtime Library 15, 16, 17, 18 Application Program 19, 31 Free space
Claims (2)
数記憶して実行できるプログラム実行装置であって、 各アプリケーション・プログラムに対応する実行時ライ
ブラリを独立したモジュールとして記憶する記憶手段
と、 実行時ライブラリのアドレスを各アプリケーション・プ
ログラムに対応して記憶するアドレス記憶手段と、 各アプリケーション・プログラムの実行時、前記アドレ
ス記憶手段に記憶されたアドレスを参照して、実行中の
アプリケーション・プログラムに対応する実行時ライブ
ラリを読出して実行させる制御手段と、 とを有することを特徴とするプログラム実行装置。1. A program execution device capable of storing and executing a plurality of various application programs, wherein a storage means for storing a runtime library corresponding to each application program as an independent module, and an address of the runtime library are provided. An address storage unit for storing each application program, and a runtime library corresponding to the application program being executed by referring to the address stored in the address storage unit when each application program is executed. A program execution device comprising: a control unit that reads and executes the program.
数記憶して実行できるプログラム実行方法であって、 各種アプリケーション・プログラムをそれぞれ独立して
記憶する工程と、 前記アプリケーション・プログラムのそれぞれに対応す
る実行時ライブラリを独立した1つのモジュールとして
記憶する工程と、 各アプリケーション・プログラムと実行時ライブラリと
を関連付ける工程と、 各アプリケーション・プログラムの実行時、実行中のア
プリケーション・プログラムに対応する実行時ライブラ
リを読出して実行させる工程と、 を有することを特徴とするプログラム実行方法。2. A program execution method capable of storing and executing a plurality of various application programs, comprising a step of independently storing the various application programs, and a runtime library corresponding to each of the application programs. The step of storing as one independent module, the step of associating each application program with the run-time library, and the execution-time of each application program, the run-time library corresponding to the running application program is read and executed. A program execution method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3172096A JPH0520033A (en) | 1991-07-12 | 1991-07-12 | Method and device for program execution |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3172096A JPH0520033A (en) | 1991-07-12 | 1991-07-12 | Method and device for program execution |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0520033A true JPH0520033A (en) | 1993-01-29 |
Family
ID=15935469
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3172096A Pending JPH0520033A (en) | 1991-07-12 | 1991-07-12 | Method and device for program execution |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0520033A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8085378B2 (en) | 2005-08-13 | 2011-12-27 | Samsung Electronics Co., Ltd. | Printed circuit board and liquid crystal display having the same |
-
1991
- 1991-07-12 JP JP3172096A patent/JPH0520033A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8085378B2 (en) | 2005-08-13 | 2011-12-27 | Samsung Electronics Co., Ltd. | Printed circuit board and liquid crystal display having the same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6625060B2 (en) | Microcomputer with efficient program storage | |
JPH0520033A (en) | Method and device for program execution | |
JP2003044307A (en) | Radio communication equipment, method for rewriting its boot program, and program | |
JP3011751B2 (en) | System startup method | |
JP3520143B2 (en) | Information processing system | |
JP2001125659A (en) | Information processor | |
JP2672599B2 (en) | Computer system | |
JP3087477B2 (en) | Computer system | |
JPH10268961A (en) | Charging information output device | |
JPH04175924A (en) | Multi-os execution system | |
JP3064506B2 (en) | POS control system with EMS memory | |
JPS6349956A (en) | Memory control system | |
JPH04299424A (en) | Program loading system for compact terminal | |
JPH0325648A (en) | Terminal equipment | |
JPH07152574A (en) | Program loading system | |
JPH08241142A (en) | Electronic computer | |
JP2707308B2 (en) | Multipurpose processor and data processing system with multipurpose processor | |
JPS61133437A (en) | One chip microcomputer | |
KR970066855A (en) | Computer and method for operating an add-on device without an operating system | |
JPH09311790A (en) | Data processor and exchanger | |
JPH0454548A (en) | Memory check system for computer system | |
JPS6212535B2 (en) | ||
JPH0844570A (en) | System and method for program execution | |
JPS6349953A (en) | Memory control system | |
JPH0689350A (en) | Data drive type information processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040210 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040408 |
|
A131 | Notification of reasons for refusal |
Effective date: 20041102 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
A02 | Decision of refusal |
Effective date: 20050316 Free format text: JAPANESE INTERMEDIATE CODE: A02 |