JPH033036A - Method for correcting load module - Google Patents
Method for correcting load moduleInfo
- Publication number
- JPH033036A JPH033036A JP1136103A JP13610389A JPH033036A JP H033036 A JPH033036 A JP H033036A JP 1136103 A JP1136103 A JP 1136103A JP 13610389 A JP13610389 A JP 13610389A JP H033036 A JPH033036 A JP H033036A
- Authority
- JP
- Japan
- Prior art keywords
- prom
- program
- modified
- stored
- storing
- 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
- 238000000034 method Methods 0.000 title claims description 7
- 230000004048 modification Effects 0.000 claims description 17
- 238000012986 modification Methods 0.000 claims description 13
- 230000009191 jumping Effects 0.000 claims description 2
- 101100521334 Mus musculus Prom1 gene Proteins 0.000 description 33
- 238000012937 correction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、例えばコンパイラ言語によってプログラムを
作成し、リンケージによりアドレスを割り付けたロード
モジュールに係わり、特にPROM化したロードモジュ
ールにおけるプログラムの一部修正を可能とするロード
モジュール修正方法に関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a load module in which a program is created using, for example, a compiler language and addresses are assigned by linkage, and in particular, the present invention relates to a partial modification of a program in a PROM-based load module. This article relates to a method for modifying a load module that enables the following.
例えばコンパイラ言語によって作成された個々のモジュ
ールは、リンケージ(連係編集プログラム)によって1
つに結合されて、実行可能なロードモジュールに仕立て
上げられる。このとき、リンケージはモジニール間のア
ドレスの割り付けを行っている。このようなロードモジ
ュールはプログラマブル・リード・オンリ・メモリ (
PROM)化して製品とされている。For example, individual modules created by a compiler language can be
are combined into an executable load module. At this time, linkage is allocating addresses between modules. Such a load module is a programmable read-only memory (
PROM) and is used as a product.
このようにロードモジコールに仕上げられた後に、プロ
グラムの修正を行う必要が生じる場合がある。この場合
には、プログラムの修正に伴ってリンケージをとり直す
ので、アドレスの割り付けが変更される場合があった。After the load module is completed in this way, it may be necessary to modify the program. In this case, as the linkage is re-established as the program is modified, address assignments may be changed.
アドレスの割り付けが変更されると、すでにPROM化
した場合にはこれらPROMすべてを交換する必要があ
った。When the address assignment is changed, it is necessary to replace all PROMs if they have already been converted into PROMs.
このような無駄を避ける方法として、アセンブラ言語を
用いてPROMを限定的に修正する方法が提案されてい
る。しかしながら、この方法ではアセンブラ言語の知識
を要求される他、修正が煩雑となり、コンパイラ言語を
用いたシステムでありながらアセンブラ言語を用いて修
正箇所の管理を行う必要が生じた。As a method to avoid such waste, a method has been proposed in which PROM is modified in a limited manner using an assembler language. However, this method requires knowledge of assembler language, makes corrections complicated, and even though the system uses compiler language, it is necessary to manage the modified parts using assembler language.
そこで本発明の目的は、同一言語を用い、しかも局所的
な記憶領域の交換でプログラムの修正を行うことのでき
るプログラム修正システムを提供することにある。SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to provide a program modification system that uses the same language and can modify programs by locally exchanging storage areas.
本発明では、(i)予め用意されている修正用のPRO
Mに修正の行われるべきプログラムの格納されているP
ROMの修正後のプログラムを書き込む修正後プログラ
ム格納ステップと、(ii>この修正の行われるべきプ
ログラムの格納されていたPROMと同一のアドレスを
有するPROMを用意しこれに修正用のPROMのアド
レスにジャンプするための命令を格納するジャンプ命令
格納ステップと、(Ill)このジャンプ命令の格納さ
れたPROMを修正の行われる前のプログラムが格納さ
れているPROMと置き換えるPROM置換ステップと
を用いてPROM化したロードモジュールの修正を行う
。In the present invention, (i) PRO for correction prepared in advance
P in which the program to be modified is stored in M
A modified program storage step of writing the modified program into the ROM; (ii) preparing a PROM having the same address as the PROM in which the program to be modified was stored; PROM is converted into a PROM using a jump instruction storage step that stores an instruction for jumping, and a PROM replacement step that replaces the PROM in which this jump instruction is stored with the PROM in which the program before modification is stored. Modify the load module that was created.
すなわち本発明では、修正後のプログラムを格納するP
ROMを用意しておき、ここに修正後のプログラムを格
納する。また、修正の必要となったプログラムを格納し
たPROMについては、これを新たなPROMに置き換
えると共に、この新たなPROMには、修正後のプログ
ラムを格納したPROMにジャンプするようにジャンプ
命令を格納する。これにより、PROMの局部的な交換
によってプログラムの修正が可能になる。That is, in the present invention, the P
Prepare a ROM and store the modified program there. Additionally, the PROM that stores the program that needs to be modified is replaced with a new PROM, and a jump instruction is stored in this new PROM to jump to the PROM that stores the modified program. . This allows modification of the program by local replacement of the PROM.
以下、実施例につき本発明の詳細な説明する。 Hereinafter, the present invention will be described in detail with reference to Examples.
第2図は本実施例のプログラム修正システムに用いられ
る修正前のPROMの配置を表わしたものである。プロ
グラムはコンパイラ言語によって作成されており、リン
ケージによってアドレスの割り付けが行われたロードモ
ジュールは、第1のPROMII−1〜第nのPROM
11−nまでのn個のROMを用いてアドレス順に格納
されている。第n+1のPROMI 1− (n+1)
は、プログラム修正用に設けられたものである。この例
で第2のPROMI 1−2には、修正の対象となるプ
ログラムAが格納されているものとする。FIG. 2 shows the layout of the PROM before modification used in the program modification system of this embodiment. The program is created using a compiler language, and the load modules to which addresses are assigned by linkage are the first PROMII-1 to the n-th PROM.
The information is stored in address order using n ROMs up to 11-n. n+1st PROMI 1- (n+1)
is provided for program correction. In this example, it is assumed that the second PROMI 1-2 stores the program A to be modified.
第1図は、プログラムの修正が行われた後のPROMの
配置を表わしたものである。第n+1のPROMI 1
− (n+ 1>には修正されたプログラムA′が格納
されている。また、元のプログラムAが格納されていた
第2のPROMI l−2には、プログラムA′にジャ
ンプさせるためのジャンプ命令(ジャンプA’ )が格
納されている。FIG. 1 shows the arrangement of the PROM after the program has been modified. n+1 PROMI 1
- (n+ 1> stores the modified program A'. Also, the second PROMI l-2, where the original program A was stored, contains a jump instruction to jump to program A'. (jump A') is stored.
第3図は、第1図に示した修正を行うためのプロセスを
表わしたものである。まず、この実施例のプログラム修
正システムは、プログラムAをコンパイラ言語によって
修正し、これをプログラムΔ′としてコンパイルする(
ステップ■)。この後、この修正されたプログラムA′
を追加リンク手段によってプログラム修正用の第(n+
1>のPROMI l −(n+1)のアドレスに追加
リンクを行う(ステップ■)。次に、第2のPROMl
l−2におけるプログラムAの先頭アドレスの部分に、
ジャンプ命令埋め込み手段を用いてプログラムA′のア
ドレスにジャンプするジャンプ命令の埋め込みを行う(
ステップ■)。最後に、PROM作成手段を用いて修正
前のプログラムAのリンクされている第2のPROMI
I−2と、修正後のプログラムA′のリンクされている
第(n+1)のPROMI 1− (n+1)を作成す
る(ステップ■)。第2のPROMI l−2は修正前
のプログラムAを格納したものと交換する。FIG. 3 depicts a process for making the modifications shown in FIG. First, the program modification system of this embodiment modifies program A using a compiler language and compiles it as program Δ' (
Step ■). After this, this modified program A′
The (n+
An additional link is made to the address of PROMI l-(n+1) of 1> (step 2). Next, the second PROMl
In the start address part of program A in l-2,
Embedding a jump instruction to jump to the address of program A' using the jump instruction embedding means (
Step ■). Finally, use the PROM creation means to create the linked second PROMI of program A before modification.
A (n+1)th PROMI 1- (n+1) is created which is linked to I-2 and the modified program A' (step 2). The second PROMI l-2 is replaced with one that stores program A before modification.
以上説明したように、本発明によれば修正の行われた部
分のプログラムを予め用意されている修正用のPROM
に格納すると共に、修正の行われる前のプログラムが格
納されていたPROMについては、修正用のPROMの
アドレスにジャンプするジャンプ命令を格納したPRO
Mに置き換えることにした。したがって、PROM化し
たロードモジュールを修正するに際してデータの書き込
みを行うPROMを修正前プログラム関数のPROMと
修正用のPROMに限定することができるという効果が
ある。As explained above, according to the present invention, a program for a modified portion is stored in a modification PROM prepared in advance.
In addition, for the PROM in which the program before the modification was stored, the PROM that stores the jump instruction to jump to the address of the modified PROM.
I decided to replace it with M. Therefore, when modifying a load module converted into a PROM, the PROMs into which data is written can be limited to the PROM for the program function before modification and the PROM for modification.
図面は本発明の一実施例を説明するためのもので、この
うち第1図はロードモジュールを構成するPROMの修
正後の配置とアドレスのジャンプとを表わしたメモリ構
成図、第2図は修正前のPROMの配置を示すメモリ構
成図、第3図は修正作業の概要を示す流れ図である。
11・・・・・・PROM。
1l−(n+1)・・・・・・プログラム修正用PRO
M。The drawings are for explaining one embodiment of the present invention. Among them, Fig. 1 is a memory configuration diagram showing the modified arrangement of PROMs constituting the load module and address jumps, and Fig. 2 is a memory configuration diagram showing the modified PROM arrangement and address jumps. A memory configuration diagram showing the arrangement of the previous PROM, and FIG. 3 is a flowchart showing an outline of the correction work. 11...PROM. 1l-(n+1)・・・Program modification PRO
M.
Claims (1)
べきプログラムの格納されているPROMの修正後のプ
ログラムを書き込む修正後プログラム格納ステップと、 この修正の行われるべきプログラムの格納されていたP
ROMと同一のアドレスを有するPROMを用意しこれ
に前記修正用のPROMのアドレスにジャンプするため
の命令を格納するジャンプ命令格納ステップと、 このジャンプ命令の格納されたPROMを前記修正の行
われる前のプログラムが格納されているPROMと置き
換えるPROM置換ステップとを具備することを特徴と
するロードモジュール修正方法。[Claims] A modified program storing step of writing a modified program in a PROM in which a program to be modified is stored into a modified PROM prepared in advance; The stored P
a jump instruction storage step of preparing a PROM having the same address as the ROM and storing therein an instruction for jumping to the address of the modification PROM; and storing the PROM in which the jump instruction is stored before the modification is performed. A method for modifying a load module, comprising the step of replacing a PROM in which the program is stored.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1136103A JPH033036A (en) | 1989-05-31 | 1989-05-31 | Method for correcting load module |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1136103A JPH033036A (en) | 1989-05-31 | 1989-05-31 | Method for correcting load module |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH033036A true JPH033036A (en) | 1991-01-09 |
Family
ID=15167350
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1136103A Pending JPH033036A (en) | 1989-05-31 | 1989-05-31 | Method for correcting load module |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH033036A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007524171A (en) * | 2004-02-27 | 2007-08-23 | テレフオンアクチーボラゲット エル エム エリクソン(パブル) | Flash memory programming |
-
1989
- 1989-05-31 JP JP1136103A patent/JPH033036A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007524171A (en) * | 2004-02-27 | 2007-08-23 | テレフオンアクチーボラゲット エル エム エリクソン(パブル) | Flash memory programming |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH033036A (en) | Method for correcting load module | |
| JP2009048259A (en) | Program conversion method and conversion program | |
| JPH04342059A (en) | Combination optimizing system | |
| JP2001100984A (en) | Program link method for microcomputer with built-in flash | |
| JPH05108338A (en) | Correcting method for linked program | |
| JP7499966B2 (en) | Control device and address management method | |
| JP2007179114A (en) | Data processing apparatus, instruction data generation apparatus, program, and recording medium | |
| CN118035497A (en) | Configuration data generation method supporting output of complex structure | |
| JP2806468B2 (en) | Program translation method | |
| JP2008276578A (en) | Signal processing device | |
| JPH04135236A (en) | Load module change system | |
| JP2004086924A (en) | Program automatic allocation system | |
| JPH0715661B2 (en) | Message text assembly / edit control method | |
| JPH04199330A (en) | Engineering station | |
| JPH01131925A (en) | Program patch system | |
| JPS63310024A (en) | Line number revising method for program | |
| JP2500770B2 (en) | Program modification method | |
| JPH10171680A (en) | Debug information creation method, debug method and debug system | |
| KR100817364B1 (en) | Programmable logic controller peripheral device and its programming method | |
| JPH05313868A (en) | Program compiling device | |
| JPH01196632A (en) | Re-translation processing system | |
| JP2001014148A (en) | Software parts assembly equipment | |
| JPS62198932A (en) | Control system for information management table | |
| JPH01134529A (en) | Correction application processing system | |
| JPH06295240A (en) | Program changing method |