JPS6081652A - Supporting device of program development - Google Patents

Supporting device of program development

Info

Publication number
JPS6081652A
JPS6081652A JP58189493A JP18949383A JPS6081652A JP S6081652 A JPS6081652 A JP S6081652A JP 58189493 A JP58189493 A JP 58189493A JP 18949383 A JP18949383 A JP 18949383A JP S6081652 A JPS6081652 A JP S6081652A
Authority
JP
Japan
Prior art keywords
memory
address
target system
statement
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
JP58189493A
Other languages
Japanese (ja)
Inventor
Hiroshi Sugaya
菅谷 宏
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
Nippon Electric Co Ltd
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, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP58189493A priority Critical patent/JPS6081652A/en
Publication of JPS6081652A publication Critical patent/JPS6081652A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To debug also a program formed with compile language at a real time by forming a memory having space corresponding to the memory space of a target system at the rate of 1 by 1. CONSTITUTION:The memory 2-15 having the space corresponding to the memory space of the target system 1 at the rate of 1 by 1 is formed in a program development supporting device 2. At the time of a real time tracing mode, an address bus 1-1 is supplied to the memory 2-15 and information corresponding to the address is supplied to an AND gate 2-18. A control signal 2-12 is supplied to the other input, and on the basis of AND between the signal from the memory 2-15 and the control signal 2-12, whether the address of the target system indicates the head of a compiler statement or not is judged. When the address indicates the head, the address of the target system is stored in a real time tracing memory 2-8. Repeat of said processes makes it possible to debug also the program formed with the compile language.

Description

【発明の詳細な説明】 発明の属する分野の説明 本発明はマイクロコンピュータのプログラムをデバグす
るプログラム開発支援装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a program development support device for debugging microcomputer programs.

従来の技術の説明 従来のプログラム開発支援装置は第1図で示されている
。1はプログラム開発支援装置を使用してデバグするタ
ーゲット・システムである。
Description of Prior Art A conventional program development support device is shown in FIG. 1 is a target system to be debugged using a program development support device.

2はプログラム開発支援装置である。ターゲット・シス
テムとプログラム開発支援装置2はターゲットcPU1
−4から供給されるアドレス・バストLデータ・バスト
2、コントロール・バスト3でプログラム開発支援装置
2のコントロール・モジュール2−7に接続されている
。ターゲットCPU■−4はターゲット。
2 is a program development support device. The target system and program development support device 2 are target cPU1
-4 is connected to the control module 2-7 of the program development support device 2 through an address bus L data bus 2 and a control bus 3. Target CPU■-4 is the target.

システムlの所有しているメモリ1−5を使用してプロ
グラムのデバグが可能である。更にプログラム開発支援
袋M、2の所有しているメモリ2−5を使用してプログ
ラムのデバグも可能である。プログラム開発支援装置2
0所有しているメ七り2−5をターゲット・システム1
のメモリ01部或は全部とみなしてデバグすることも可
能である。ターゲット・システム1をデパグする際の、
メモリの変更はプログラム開発支援装置2のコントロー
ル・モジュール2−7にて実施する。
Programs can be debugged using the memories 1-5 owned by system I. Furthermore, it is also possible to debug programs using the memory 2-5 owned by the program development support bag M,2. Program development support device 2
Target system 1 with 0 owned menus 2-5
It is also possible to debug by considering the memory 01 part or the entire memory. When debugging target system 1,
Memory changes are performed by the control module 2-7 of the program development support device 2.

コントロール・モジュール2−7はターゲット・システ
ム1のアドレス・バスト1 全判断することによシ、タ
ーゲットCPUl−4のデバグしているメモリがターゲ
ット・システム1内のメモリ1−5にあるのか、或はプ
ログラム開発支援装置2内のメモリ2−5にあるのかを
制御する。
The control module 2-7 determines whether the memory being debugged in the target CPU 1-4 is located in the memory 1-5 in the target system 1 by determining the address bus 1 of the target system 1. controls whether it is stored in the memory 2-5 in the program development support device 2.

プログラム開発支援装置2は更にリアル・タイム・トレ
ース用のメモリ2−8を所有している。コントロール・
モジュール2−7カラハlJアル・タイム・トレース時
のカウント・アップ信号2−13がアドレス・カウンタ
・モジュール2−9に供給され、リアル・タイム・トレ
ース用メモリ2−8のアドレス信号を決定する。
The program development support device 2 further has a memory 2-8 for real-time tracing. Control·
The count up signal 2-13 for real time tracing is supplied to the address counter module 2-9, which determines the address signal for the real time tracing memory 2-8.

更にコントロール・モジュール2−7からはリアル・タ
イム・トレース用メモリ2−8への書き込みタイミング
信号2−12を供給する。
Furthermore, the control module 2-7 supplies a write timing signal 2-12 to the real-time trace memory 2-8.

リアル・タイム・トレース時は出力ボートからの制御信
号2−14によシ、リアル・タイム・トレース用メモリ
2−8へのアドレス信号はマルチlプレクサ2−10を
経由して、書き込み信号はマルチlプレクサ2−11を
経由して、供給される。トレーサ終了時は制御信号2−
14を切シ換えることによ、9、CPU2−4が制御す
る1つのメモリに切υ換わる。
During real time tracing, the control signal 2-14 from the output port is used, the address signal to the real time trace memory 2-8 is sent via the multiplexer 2-10, and the write signal is sent via the multiplexer 2-10. It is supplied via the l plexer 2-11. When the tracer ends, control signal 2-
By switching 14, 9 and υ are switched to one memory controlled by CPU 2-4.

本リアル・タイム・トレーサは機械語と1対1に対応し
ているアセンブラ言語でのみ書かれたプログラムしかト
レース機能を発揮でき力い。
This real-time tracer is only capable of tracing programs written in assembler language, which has a one-to-one correspondence with machine language.

表−1に高級言語(コンパイラ言語)で作成されたプロ
グラムとそれに対応したアセンブル言語で作成されたプ
ログラムとの例を示す。すなわち、表−1から高級言語
による1ステートメントが複数個のアセンブル・ステー
トメントに和尚していることが解る。
Table 1 shows an example of a program created in a high-level language (compiler language) and a corresponding program created in an assembly language. That is, from Table 1, it can be seen that one statement written in a high-level language is composed of multiple assemble statements.

表−1で示される様に、コンパイラ言語(高級言語)で
作成されたプログラムは、1ステート/メントが複数個
のアセンブル・ステー)/メント(機械語)で構成され
ている為、例えトレース結果を得たとしても、どのコン
パイル・ステートメントをトレースしたのか、判続不能
である。従来のプログラム開発支援装置は、コンパイラ
言語で作成されたプログラムをコンパイルしたあと、コ
ンパイル・ステートメントとアセンブル・ステートメン
トの対応づけがなされていない為、コンパイル・ステー
トメントのリアル・タイム・トレースは不可能という欠
点があった。今後、プログラムの容量が膨大になるにつ
れプログラム開発の効率をアップさせ、バグを少なくす
るに杜、プログ2ムをコンパイル言語で組む必要があり
、より便利なデバグ手段を提供する必要がある。
As shown in Table 1, in a program created using a compiler language (high-level language), one statement consists of multiple assembly states/statements (machine language), so even if the trace result Even if you do, it is impossible to determine which compilation statements were traced. Conventional program development support devices have the disadvantage that real-time tracing of compiled statements is impossible because there is no correspondence between compiled statements and assemble statements after a program created using a compiler language is compiled. was there. In the future, as the capacity of programs increases, in order to improve the efficiency of program development and reduce bugs, it will be necessary to assemble programs in compiled languages, and it will be necessary to provide more convenient means of debugging.

発明の目的 本発明はコンパイル言語で組まれたプログラムをデバグ
できるプログラム開発支援装置を得ることにある。
OBJECTS OF THE INVENTION An object of the present invention is to obtain a program development support device capable of debugging a program written in a compiled language.

発明の構成 本発明によるプログラム開発支援装置によれば、コンパ
イラ言語(高級言語)で作成されたプログラムのリアル
・タイム・トレース機能を付加している。
Structure of the Invention According to the program development support device according to the present invention, a real-time tracing function for programs created in a compiler language (high-level language) is added.

発明の構成および作用の説明 以下、図面を参照してよシ詳細に説明する。Description of the structure and operation of the invention A detailed description will be given below with reference to the drawings.

第2図は本発明の一実施例である。2はプログラム開発
支援装置であシ、本装置2内に新たにメモリ2−15を
設ける。本メモリ2−15は、ターゲット・システム1
のメモリ空間と1対1に対応した空間を所有している。
FIG. 2 shows an embodiment of the present invention. 2 is a program development support device, and a new memory 2-15 is provided within this device 2. This memory 2-15 is the target system 1
owns a space that corresponds one-to-one with the memory space of .

つまシ、ターゲットシステム1の1アドレスがメモリ2
−15の1アドレスに対応している。
Tsumashi, 1 address of target system 1 is memory 2
-15 corresponds to one address.

コンパイラ言語で作成されたプログラムが、コンパイル
されて、アセンブル・ステート/I)ントに分解された
とき、1つのコンパイル・ステートメントは複数個のア
センブル・ステートメントで構成されることになるので
、コンパイル・ステートメントを実行したか否かは、コ
ンパイル・ステートメントを構成した先頭のアセンブル
・ステートメントを実行したか否かによシ判別可能であ
る。
When a program created in a compiler language is compiled and decomposed into assemble state/I) components, one compile statement consists of multiple assemble statements. Whether or not this has been executed can be determined by whether or not the first assemble statement that made up the compile statement was executed.

メモリ2−15には、コンパイル・ステートメントと対
応したアドレスに、コンパイル・ステートメントを構成
した先頭のアセンブル・ステートメントであることを示
す情報を設定する。
In the memory 2-15, information indicating that this is the first assemble statement of the compiled statement is set at an address corresponding to the compiled statement.

例えば、本例では、コンパイル・ステートメントを構成
した先頭のアセンブル・ステートメントと対応したメモ
リ空間には11」を、それ以外のメモリ空間にはfO」
を設定する。更にプログラム開発支援装置2では、アド
レスとコンパイル・ステートメントとを1対1に対応づ
ける。
For example, in this example, the memory space corresponding to the first assemble statement that made up the compile statement is set to 11, and the other memory spaces are set to fO'.
Set. Furthermore, the program development support device 2 associates addresses and compile statements in a one-to-one correspondence.

トレーサ・モードでないとき、メモリ2−15はCPU
2−4のメモリの一部になる。制御信号2−14を切シ
換えることにより、マルチ・プレクサ2−16からはア
ドレス・バス2−1が、マルチ・プレクサ2−17から
は制御信号2−3が、メモ1J2−15に供給される。
When not in tracer mode, memory 2-15 is
It becomes part of the memory of 2-4. By switching control signal 2-14, address bus 2-1 is supplied from multiplexer 2-16 and control signal 2-3 is supplied from multiplexer 2-17 to memo 1J2-15. Ru.

制御信号2−14にょシ、リアル・タイム・トレース・
モードに設定されたとき、命令の読み出し時、ターゲッ
ト・システムのアドレス・バスト1がメモリ2−15に
供給され、アドレスに対応した情報が論理積グー)2−
18に供給される。もう1方の入力には、命令読み出し
時の制御信号2−12が供給され、前述のメモリ2−1
5の信号との論理積によシ、ターゲット・システムのア
ドレスが、コンバイ2・ステートメントの先頭を示して
いるか否かを判断する。コンパイラ・ステートメントの
先頭を示す場合には、ターゲット・システムのアドレス
をリアル・タイム・トレーサ用メモリ2−8に格納する
。本手順を繰返すことにより、コンパ 1イジ・ステー
トメントの実行順が、リアル・タイム・トレーサ用メモ
リ2−8に貯えられる。
Control signal 2-14, real time trace
mode, when reading an instruction, address bust 1 of the target system is supplied to the memory 2-15, and information corresponding to the address is logically ANDed) 2-
18. The other input is supplied with a control signal 2-12 when reading an instruction, and is connected to the memory 2-1 described above.
5 and determines whether the address of the target system indicates the beginning of the combine2 statement. When indicating the beginning of a compiler statement, the address of the target system is stored in the real time tracer memory 2-8. By repeating this procedure, the execution order of comparator statements is stored in the real-time tracer memory 2-8.

本アドレス情報はコンパイラ・バー1−トメントと対応
づけられてお)、アドレス情報から、コンパイラ・ステ
ートメントへ逆袈換することによシ、コンパイラ言語で
作成されたプログラムのリアル・タイム・トレースが可
能になる。
This address information is associated with compiler statements), and by converting the address information into compiler statements, real-time tracing of programs created in the compiler language is possible. become.

従来、コンパイラ1語で作成されたプログラムをデパグ
する方法としては、デバグ・ステートメントをあらかじ
めプログラムに組み込み、コンパイルすることにより可
能である。そq)為、再コンパイルする度に、プログラ
ム容量及びリアル・タイム性は全く考慮されてなかった
Conventionally, a method of debugging a program created using a single word compiler is possible by incorporating debug statements into the program in advance and compiling it. Therefore, each time the program was recompiled, program capacity and real-time performance were not taken into consideration at all.

本プログラム開発支援装置を使用すれば、コンパイラ言
語で作成されたプログラムでも、プログラムを再コンパ
イルする必要もなく、全く同じプログラム容量で、リア
ル・タイム性を損うことなくデバグが可能だという利点
がある。
By using this program development support device, there is no need to recompile programs created using compiler languages, and the advantage is that debugging is possible without compromising real-time performance using exactly the same program capacity. be.

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

第1図はターゲット・システムと従来のプログラム開発
支援装置の基本的な構成例を示すブロック図である。 第2図は本発明のプログラム開発支援装置の一実施例を
示すブロック図である。 1・・・・・・ターゲット・システム、1−1・・・・
・パアドレス・バス、1−2・・・・・テーク・バス、
1−3・・・・・・コントロール・バス、1−4・・・
・・CP[J、1−5・・・・・・メモリ、1−6・・
・・・・入出力ボート、2・・・・・ターゲット・シス
テム、2−1・・・・・・アドレス・バス、2−2・・
・・・・テーク・バス、2−3・・・・・・コントロー
ル・バス、2−4・・・・・・CPU、2−5・・・・
・・メモリ、2−6・・・・・・入出力ホート、2−7
・・・・・・コントロール・モジュール、2−8・・・
・・・リアル・タイム・トレース用メモリ、2−9・・
・・・・アドレス・カウンタ・モジュール、2−10・
・・・・・マルチ・プレクサ、2−11・・・・・・マ
ルチ・プレクサ、2−12・・・・・・リアル・タイム
・トレース用メモリへの書き込み信号、2−13・・・
・・・アドレス・カウンタ・モジュールへのカウント信
号、2−14・・・・・・制御信号、2−15・・・・
・・メモリ、2−16・・・・・・マルチ・プレクサ、
2−17・・・・・・マルチ・プレクサ、2−18・・
・・・・AND回路。
FIG. 1 is a block diagram showing a basic configuration example of a target system and a conventional program development support device. FIG. 2 is a block diagram showing an embodiment of the program development support device of the present invention. 1...Target system, 1-1...
・Paraddress bus, 1-2...Take bus,
1-3...Control bus, 1-4...
...CP[J, 1-5...Memory, 1-6...
...I/O port, 2...Target system, 2-1...Address bus, 2-2...
...Take bus, 2-3...Control bus, 2-4...CPU, 2-5...
...Memory, 2-6...Input/output port, 2-7
...Control module, 2-8...
・・・Real time trace memory, 2-9...
...address counter module, 2-10.
...Multiplexer, 2-11...Multiplexer, 2-12...Write signal to real-time trace memory, 2-13...
... Count signal to address counter module, 2-14 ... Control signal, 2-15 ...
...Memory, 2-16...Multiplexer,
2-17...Multiplexer, 2-18...
...AND circuit.

Claims (1)

【特許請求の範囲】[Claims] ターゲットシステムのプログラム空間と対応した情報蓄
積装置次を有し、高級言語(コンパイラ言語)で作成さ
れたプログラムの各ステートlメントは複数のアセンブ
ル・ステート/メント(機械語)に対応し、その該ステ
ートlメントの先頭のアセンブル・ステートダメントに
対応した情報蓄積装置のアドレスに、該ステー)/メン
トの先頭であることを示す情報を設定することによシ、
高級言語で作成されたプログラムのリアル・タイム・ト
レース機能を可能とすることを特徴としたプログラム開
発支援装置。
It has an information storage device corresponding to the program space of the target system, and each statement of a program created in a high-level language (compiler language) corresponds to multiple assemble statements/statements (machine language). By setting information indicating that the statement is at the beginning of the statement in the address of the information storage device corresponding to the assembly statement at the beginning of the statement,
A program development support device characterized by enabling a real-time tracing function for programs created in a high-level language.
JP58189493A 1983-10-11 1983-10-11 Supporting device of program development Pending JPS6081652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58189493A JPS6081652A (en) 1983-10-11 1983-10-11 Supporting device of program development

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58189493A JPS6081652A (en) 1983-10-11 1983-10-11 Supporting device of program development

Publications (1)

Publication Number Publication Date
JPS6081652A true JPS6081652A (en) 1985-05-09

Family

ID=16242183

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58189493A Pending JPS6081652A (en) 1983-10-11 1983-10-11 Supporting device of program development

Country Status (1)

Country Link
JP (1) JPS6081652A (en)

Similar Documents

Publication Publication Date Title
JPH05224911A (en) Dynamic-instruction correcting and controlling apparatus
US5438673A (en) Automatic interface for CPU real machine and logic simulator diagnostics
JPH0798692A (en) Microcomputer
CN102722438B (en) Kernel debugging method and equipment
CN109144849B (en) Embedded software debugging method
JPS6081652A (en) Supporting device of program development
JPH06103104A (en) Remote debug method
JPS60262251A (en) Backup device for development of microprocessor
JPS61160154A (en) Supporting device of program development
KR100214125B1 (en) Function parameter tracking method in full electronic switching system
JPH0283749A (en) Internal interruption control system for microprocessor
CN216848733U (en) Novel embedded debugging equipment
JPH0581087A (en) Processor monitoring system
JP2659366B2 (en) Debugging method and device
JPS63223930A (en) Simulation system for program of exclusive processor
JPH0285934A (en) Emulator
KR100216533B1 (en) The event history recording method for the deterministic replay of concurrent chill program
JPH02281341A (en) Write data confirming method for debugging
JPH0652013A (en) Tracing circuit
CN116881120A (en) OpenOCD single port debugging method and system for isomorphic asymmetric multi-core
CN111221595A (en) Large-capacity cross-embedded software system
JPS59202548A (en) Debugging device
JPS60108902A (en) Process input/output method
JP2000330775A (en) Method for developing built-in system
JPS59202546A (en) Debugging device