JPH033036A - Method for correcting load module - Google Patents

Method for correcting load module

Info

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
Application number
JP1136103A
Other languages
Japanese (ja)
Inventor
Hiroo Ichii
市井 博雄
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 JP1136103A priority Critical patent/JPH033036A/en
Publication of JPH033036A publication Critical patent/JPH033036A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To correct a program with the replacement of a partial storage means by storing the program of a corrected part in a correcting PROM and substituting a PROM storing an instruction to be jumped to the address of the correcting PROM for a PROM storing an uncorrected program. CONSTITUTION:A correct program A' is stored in the (n+1)th PROM 11-(n+1) and a jump instruction (jump A') is stored in the 2nd PROM 11-2 storing an original program A. An instruction to be jumped to the address of the program A' is padded in the leading address part of the program A stored in the 2nd PROM 11-2. Then the 2nd PROM 11-2 linking the uncorrected program A and the (n+1)th PROM 11-(n+1) linking the corrected program A' are formed. The 2nd PROM 11-2 is replaced by the PROM storing the uncorrected program A. Thus, the program can be corrected by the partial replacement of the PROM 11.

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.

〔従来の技術〕[Conventional technology]

例えばコンパイラ言語によって作成された個々のモジュ
ールは、リンケージ(連係編集プログラム)によって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.

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

このようにロードモジコールに仕上げられた後に、プロ
グラムの修正を行う必要が生じる場合がある。この場合
には、プログラムの修正に伴ってリンケージをとり直す
ので、アドレスの割り付けが変更される場合があった。
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.

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

本発明では、(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.

〔実施例〕〔Example〕

以下、実施例につき本発明の詳細な説明する。 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.

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

以上説明したように、本発明によれば修正の行われた部
分のプログラムを予め用意されている修正用の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.

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

図面は本発明の一実施例を説明するためのもので、この
うち第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に修正の行われる
べきプログラムの格納されている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.
JP1136103A 1989-05-31 1989-05-31 Method for correcting load module Pending JPH033036A (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007524171A (en) * 2004-02-27 2007-08-23 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Flash memory programming

Cited By (1)

* Cited by examiner, † Cited by third party
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