JP2008176420A - Data transfer method, data transfer device, and debugging device - Google Patents

Data transfer method, data transfer device, and debugging device Download PDF

Info

Publication number
JP2008176420A
JP2008176420A JP2007007440A JP2007007440A JP2008176420A JP 2008176420 A JP2008176420 A JP 2008176420A JP 2007007440 A JP2007007440 A JP 2007007440A JP 2007007440 A JP2007007440 A JP 2007007440A JP 2008176420 A JP2008176420 A JP 2008176420A
Authority
JP
Japan
Prior art keywords
data
compression
transfer
determination step
arithmetic processing
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
JP2007007440A
Other languages
Japanese (ja)
Inventor
Masahiro Kishimoto
將裕 岸本
Kosaku Shibata
耕作 柴田
Hiroshi Setoguchi
博志 瀬戸口
Hisanori Noto
久典 能登
Takafumi Matsumoto
貴文 松本
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2007007440A priority Critical patent/JP2008176420A/en
Publication of JP2008176420A publication Critical patent/JP2008176420A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data transfer method and data transfer device for efficiently acquiring the effects of data compression. <P>SOLUTION: A debugging device 106 (data transfer device) is provided with a compression effect deciding part 204 for deciding whether or not data compression is valid for shortening a transfer time about the whole part or part of transfer object data; a compression part 205 for compressing data to be decided when it is decided that the data compression is valid by the compression effect deciding part 204; and a transmission part for transmitting the data compressed by a compression part 205 through a communication path to a second arithmetic processor, and transmits the decision object data decided to be invalid by the compression effect deciding part 204 through a communication path to the second arithmetic processor without compressing the data. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、通信路を介して演算処理装置にデータを送信する方法および装置に関し、特に、デバッグ対象としての演算処理装置に転送対象データを送信するデバッグ装置に関する。   The present invention relates to a method and apparatus for transmitting data to an arithmetic processing device via a communication path, and more particularly to a debugging device for transmitting transfer target data to an arithmetic processing device as a debug target.

近年、機器組込みシステムのソフトウェア開発において、JTAG(Joint Test Action Group)デバッガなどの開発支援ツールが広く利用されている。これらの開発支援ツールにおいては、ソフトウェア開発者が効率よくデバッグ作業を行うために、実行形式ファイルをホストコンピュータからターゲットまで高速に転送することが望まれる。特に、近年においては、システムの複雑化に伴い、ターゲットとなる機器組込みシステムに組み込まれるプログラム量が増大しているため、ホストコンピュータから機器組込みシステムへのデータ転送の高速化は必要不可欠である。   In recent years, development support tools such as a JTAG (Joint Test Action Group) debugger have been widely used in software development of device embedded systems. In these development support tools, in order for the software developer to perform debugging work efficiently, it is desirable to transfer the executable file from the host computer to the target at high speed. In particular, in recent years, with the complexity of the system, the amount of programs incorporated in the target device embedded system has increased, so it is essential to increase the speed of data transfer from the host computer to the device embedded system.

データ転送の高速化を実現する方法として、転送データを圧縮する方法が一般的であるが、従来のデバッグシステムにおけるデータ転送においては、転送される実行形式ファイルのデータ量の小ささや圧縮率の悪さなどから実行形式ファイルの圧縮については考慮されていない場合が多かった。このため、従来のデバッガにおけるデータ転送方法では、実行形式ファイルのデータ量が大きくなるに従って、データ転送時間が増大し、デバッグ作業に支障をきたすという問題があった。   As a method for realizing high-speed data transfer, a method of compressing transfer data is generally used. However, in the data transfer in the conventional debug system, the data amount of the executable file to be transferred is small and the compression rate is poor. In many cases, the compression of executable files was not considered. For this reason, in the conventional data transfer method in the debugger, there is a problem that the data transfer time increases as the amount of data in the executable file increases, which hinders debugging work.

前記問題に対し、データ圧縮によりデータ転送時間の短縮を行うデバッグ装置の一例が、特許文献1に開示されている。特許文献1に開示された技術では、ホストコンピュータとエミュレータとをLANインターフェースで接続したデバッグ装置において、データを圧縮する圧縮装置とデータの送受信を制御する通信装置がデバッグ装置に設けられている。圧縮装置により圧縮されたデータは通信装置によりエミュレータに転送される。これにより、デバッグ装置・エミュレータ間のデータ転送の高速化を可能としている。このように、特許文献1に開示されている技術は、データ圧縮により転送データ量を削減することでデータ転送時間を短縮出来る点で優れている。
特開2003−208332号公報
An example of a debugging device that shortens the data transfer time by data compression is disclosed in Japanese Patent Application Laid-Open No. 2004-133830. In the technique disclosed in Patent Document 1, in a debugging device in which a host computer and an emulator are connected by a LAN interface, a debugging device that compresses data and a communication device that controls transmission and reception of data are provided in the debugging device. The data compressed by the compression device is transferred to the emulator by the communication device. This makes it possible to speed up the data transfer between the debug device and the emulator. Thus, the technique disclosed in Patent Document 1 is excellent in that the data transfer time can be shortened by reducing the amount of transfer data by data compression.
JP 2003-208332 A

しかしながら、上記従来技術によれば、データ圧縮に要する時間がデータ圧縮によるデータ転送短縮時間を上回る場合、結局のところ圧縮に要する時間とデータ転送時間との合計は短縮されるとは限らないという問題がある。   However, according to the above prior art, if the time required for data compression exceeds the data transfer shortened time due to data compression, the sum of the time required for compression and the data transfer time is not necessarily shortened after all. There is.

図11は、CPUの処理能力と圧縮率とに応じて異なるデータ圧縮時間とデータ転送時間とを示す説明図である。同図(a)は、非圧縮でデータを転送する場合を示す。この場合、転送時間を1.0(任意単位)とする。この転送時間はCPUの処理能力と圧縮率には無関係である。同図(b)は、CPUの処理能力が高く、かつ圧縮率が高い場合を示す。この場合は、データ圧縮による効果つまり、圧縮時間と転送時間との合計を非圧縮データの転送時間よりも短縮することができる。   FIG. 11 is an explanatory diagram showing different data compression times and data transfer times depending on the processing capability and compression rate of the CPU. FIG. 4A shows a case where data is transferred without compression. In this case, the transfer time is 1.0 (arbitrary unit). This transfer time is independent of the CPU processing capacity and compression rate. FIG. 2B shows a case where the processing capacity of the CPU is high and the compression rate is high. In this case, the effect of data compression, that is, the total of the compression time and the transfer time can be shortened compared to the transfer time of the uncompressed data.

これに対して、同図(c)〜(e)ではCPUの処理能力および圧縮率の少なくとも一方がやや極端に低い場合を示している。これらの場合は、データ圧縮による効果を得ることができずに、同図(a)の非圧縮データの転送時間よりも圧縮時間と転送時間との合計の方が却って大きくなるという問題がある。   On the other hand, FIGS. 3C to 3E show a case where at least one of the processing capacity and the compression rate of the CPU is slightly extremely low. In these cases, there is a problem that the effect of data compression cannot be obtained, and the total of the compression time and the transfer time becomes larger than the transfer time of the non-compressed data in FIG.

そこで本発明は上記課題に鑑み、データ圧縮の効果をより効率的に得るデータ転送方法及びデータ転送装置を提供することを目的とする。   SUMMARY OF THE INVENTION In view of the above problems, an object of the present invention is to provide a data transfer method and a data transfer apparatus that can efficiently obtain the effect of data compression.

前記従来の問題点を解決するために、本発明のデータ転送方法は、通信路を介して演算処理装置にデータを転送するデータ転送方法であって、転送対象データの全部または一部分についてデータ圧縮が転送時間の短縮に有効であるか否かを判定する圧縮効果判定ステップと、前記圧縮効果判定ステップにおいて有効と判定された場合に、前記圧縮効果判定ステップにおける判定対象データを圧縮する圧縮ステップと、前記圧縮ステップにおいて圧縮されたデータを通信路を介して前記演算処理装置に送信する第1の送信ステップと、前記圧縮効果判定ステップにおいて有効でないと判定された場合に、前記圧縮効果判定ステップにおける判定対象データを圧縮せずに通信路を介して前記演算処理装置に送信する第2の送信ステップとを有する。   In order to solve the above-described conventional problems, a data transfer method of the present invention is a data transfer method for transferring data to a processing unit via a communication path, and data compression is performed on all or a part of transfer target data. A compression effect determination step for determining whether or not the transfer time is effective, and a compression step for compressing determination target data in the compression effect determination step when it is determined to be effective in the compression effect determination step; A determination in the compression effect determination step when it is determined in the first transmission step that transmits the data compressed in the compression step to the arithmetic processing unit via a communication path and the compression effect determination step is not effective. A second transmission step of transmitting the target data to the arithmetic processing unit via a communication path without compressing the target data.

この構成によれば、転送対象データのうちデータ圧縮が転送時間の短縮に有効であると判定されたデータは圧縮されてから演算処理装置に送信されるのでデータ圧縮効果を得ることができ、さらに有効でないと判定されたデータは、圧縮されないで演算処理装置に送信されるので、圧縮時間と転送時間との合計の方が却って大きくなることを回避することができ、データ圧縮の効果をより効率的に得ることができる。このように、転送対象データ全体を圧縮するデータ転送方法と比較して、圧縮データの転送によるデータ転送時間短縮の効果を得ることが可能である。   According to this configuration, data that is determined to be effective for shortening the transfer time among the data to be transferred can be compressed before being sent to the arithmetic processing unit, so that a data compression effect can be obtained. Since the data determined to be invalid is transmitted to the arithmetic processing unit without being compressed, it can be avoided that the total of the compression time and the transfer time becomes larger, and the effect of the data compression is more efficient. Can be obtained. As described above, it is possible to obtain the effect of reducing the data transfer time by transferring the compressed data as compared with the data transfer method in which the entire transfer target data is compressed.

ここで、前記圧縮効果判定ステップは、前記転送対象データを構成する部分データ毎に、その種別を示すデータ種別情報を取得するデータ種別情報取得ステップと、前記データ種別情報取得ステップで取得した前記データ種別情報から当該部分データのデータ圧縮が転送時間の短縮に有効であるか否かを判定するデータ別圧縮効果判定ステップとを有するようにしてもよい。   Here, the compression effect determination step includes a data type information acquisition step for acquiring data type information indicating the type for each partial data constituting the transfer target data, and the data acquired in the data type information acquisition step. You may make it have the compression effect judgment step classified by data which judges whether data compression of the said partial data is effective for shortening of transfer time from classification information.

この構成によれば、転送対象データにおけるデータ出現パターンはデータ種別に大きく依存するため、部分データ毎にデータ種別に即した圧縮効果判定方法を選択することができるため、効率的に圧縮効果を判定することができ、その結果、圧縮効果判定の処理時間を短縮することが可能となる。   According to this configuration, since the data appearance pattern in the transfer target data greatly depends on the data type, it is possible to select a compression effect determination method according to the data type for each partial data. As a result, it is possible to shorten the processing time for determining the compression effect.

ここで、前記データ種別情報取得ステップは、前記演算処理装置上で実行可能なプログラムを含む実行形式ファイルを前記転送対象データとして読み出す読み出しステップと、前記実行形式ファイルに含まれるセクション情報を、前記部分データのデータ種別情報として取得するセクション情報取得ステップとを有するようにしてもよい。   Here, the data type information acquisition step includes a reading step of reading out an executable file containing a program executable on the arithmetic processing device as the transfer target data, and section information included in the executable file. You may make it have a section information acquisition step acquired as data classification information of data.

この構成によれば、転送対象データに対して特別な付加情報を用意せずとも、既存のデータを用いてデータ種別を判定することが可能となり、データ種別判定にかかる手間を削減できる。   According to this configuration, it is possible to determine the data type using existing data without preparing special additional information for the transfer target data, and it is possible to reduce time and effort for determining the data type.

ここで、前記データ種別情報取得ステップにおいて、前記転送対象データの格納先となる前記演算処理装置の記憶領域の配置情報を前記データ種別情報として取得するようにしてもよい。   Here, in the data type information acquisition step, arrangement information of a storage area of the arithmetic processing unit that is a storage destination of the transfer target data may be acquired as the data type information.

この構成によれば、それらの記憶領域に関する情報を参照することにより、容易にデータ種別を判断することが可能となる。その結果、転送対象データに対して特別な付加情報を用意せずとも、データ種別を判定することが可能となり、データ種別判定にかかる時間を短縮することができる。   According to this configuration, it is possible to easily determine the data type by referring to the information related to the storage areas. As a result, the data type can be determined without preparing special additional information for the transfer target data, and the time required for determining the data type can be reduced.

ここで、前記データ種別情報取得ステップは、前記第2の演算処理装置上で実行可能なプログラムを含む実行形式ファイルを読み出す実行形式読み出しステップと、前記実行形式ファイルにセクション情報が含まれるか否かを判定するセクション情報有無確認ステップと、前記セクション情報有無確認ステップの結果、セクション情報が実行形式ファイルに含まれると確認された場合には、実行形式ファイルに含まれるプログラムのセクション情報をデータ種別情報として取得するセクション情報取得ステップと、前記セクション情報有無確認ステップの結果、セクション情報が実行形式ファイルに含まれないと確認された場合には、前記転送対象データの格納先となる前記演算処理装置の記憶領域の配置情報をデータ種別情報として取得する記憶領域配置情報取得ステップとを有するようにしてもよい。   Here, the data type information acquisition step includes an execution format reading step of reading an execution format file including a program executable on the second arithmetic processing unit, and whether or not section information is included in the execution format file. If the section information is confirmed to be included in the executable file as a result of the section information presence / absence checking step and the section information presence / absence checking step, the section information of the program included in the executable file is converted into the data type information. As a result of the section information acquisition step and the section information presence / absence confirmation step acquired as follows, if it is confirmed that the section information is not included in the executable file, the calculation processing device of the storage target data storage destination Obtain storage area location information as data type information It may have a storage area arrangement information acquisition step.

この構成によれば、実行形式ファイルにセクション情報が含まれている場合には、データ種別情報として記憶領域配置情報に比べてセクション情報を優先して使用することができ、その結果、前記圧縮効果判定ステップにおいて精度の高い圧縮効果の判定が可能となる。   According to this configuration, when the execution format file includes section information, the section information can be used as data type information in preference to the storage area arrangement information, and as a result, the compression effect In the determination step, it is possible to determine the compression effect with high accuracy.

ここで、前記圧縮効果判定ステップは、データ種別が前記第2の演算処理装置で実行される命令であるか否かを判定する命令判定ステップと、前記命令判定ステップでデータ種別が命令と判定された場合、第1のアルゴリズムによってデータ圧縮が転送時間の短縮に有効であるか否かを判定する第1判定ステップと、前記命令判定ステップでデータ種別が命令でないと判定された場合、第2のアルゴリズムによってデータ圧縮が転送時間の短縮に有効であるか否か判定する第2判定ステップとを有するようにしてもよい。   Here, in the compression effect determination step, the data type is determined to be an instruction in the instruction determination step for determining whether or not the data type is an instruction to be executed by the second arithmetic processing unit, and the instruction determination step. If the first algorithm determines that the data compression is effective for shortening the transfer time by the first algorithm and the instruction determination step determines that the data type is not an instruction, the second determination A second determination step of determining whether data compression is effective for shortening the transfer time by an algorithm may be included.

この構成によれば、データ種別が前記第2の演算処理装置で実行される命令である場合には、命令用の圧縮効果判定アルゴリズムを優先的に使用することにより効率的に圧縮効果を計測することが可能となる。なぜなら、前記実行形式ファイルに含まれるデータ種別のうち、命令は、プログラムのループ処理など出現するパターンに規則性が有り、ランダムデータの圧縮効果を計測する場合とは異なるアルゴリズムを用いることにより、より効率的に圧縮効果を判定できる。   According to this configuration, when the data type is an instruction executed by the second arithmetic processing unit, the compression effect is efficiently measured by preferentially using the compression effect determination algorithm for the instruction. It becomes possible. Because, among the data types included in the execution format file, the instruction has regularity in the pattern that appears, such as loop processing of the program, and by using an algorithm different from that for measuring the compression effect of random data, The compression effect can be determined efficiently.

ここで、前記第1の判定ステップにおいて、常にデータ圧縮が転送時間の短縮に有効であると判定するようにしてもよい。   Here, in the first determination step, it may be determined that data compression is always effective for shortening the transfer time.

この構成によれば、前記第1の判定ステップにおいて、命令領域を無条件に圧縮効果の高い部分とみなすことにより圧縮効果の判定を単純化できるため、判定時間を削減することができる。一般に演算器の命令は一部のビットパターンがプログラムでは使用されない未定義命令とされている。故に命令で構成されるデータは完全なランダムデータに比べて、未定義命令の分だけ情報エントロピーが低下し、常に高い圧縮効果を期待できる。   According to this configuration, in the first determination step, it is possible to simplify the determination of the compression effect by unconditionally considering the instruction area as a portion having a high compression effect, so that the determination time can be reduced. In general, an arithmetic unit instruction is an undefined instruction in which some bit patterns are not used in a program. Therefore, the data composed of instructions is lower in information entropy by the amount of undefined instructions than the complete random data, and can always be expected to have a high compression effect.

ここで、圧縮効果判定ステップは、圧縮効果判定ステップを実施する演算器の処理性能が閾値よりも高いか否かを判定する演算性能判定ステップと、前記演算性能判定ステップで処理性能が閾値よりも高いと判定された場合、データ圧縮が転送時間の短縮に有効であるか否かを判定する第1の判定ステップと、前記演算性能判定ステップで演算性能が低いと判定された場合、第1の判定ステップより計算量が少ない方法で、データ圧縮が転送時間の短縮に有効であるか否かを判定する第2の判定ステップと、を有するようにしてもよい。   Here, the compression effect determination step includes a calculation performance determination step that determines whether or not the processing performance of the computing unit that performs the compression effect determination step is higher than a threshold value, and the processing performance is lower than the threshold value in the calculation performance determination step. If it is determined that the calculation performance is low, the first determination step for determining whether or not the data compression is effective for shortening the transfer time; and the calculation performance determination step that determines that the calculation performance is low. You may make it have the 2nd determination step which determines whether data compression is effective for shortening of transfer time by the method with less calculation amount than a determination step.

この構成によれば、演算器の処理性能に応じて異なる判定を行う。つまり、前記演算器の処理性能が高いと判定された場合には、通常の圧縮効果計測方法を用いることで判定の精度を保ち、演算器の処理性能が低いと判定された場合には精度は低いが負荷の少ない圧縮効果計測方法を用いて判定に要する時間を削減することができ、圧縮効果の判定によって転送時間が悪化するリスクを削減することができる。   According to this configuration, different determinations are made according to the processing performance of the computing unit. That is, when it is determined that the processing performance of the arithmetic unit is high, the accuracy of the determination is maintained by using a normal compression effect measurement method, and when it is determined that the processing performance of the arithmetic unit is low, the accuracy is The time required for the determination can be reduced by using a compression effect measurement method that is low but less loaded, and the risk that the transfer time is deteriorated due to the determination of the compression effect can be reduced.

また、本発明のプログラム、データ転送装置およびデバッグ装置も上記と同様に構成され、同様の効果を奏する。   The program, data transfer device, and debugging device of the present invention are also configured in the same manner as described above, and have the same effects.

以上のように、本発明によれば、転送対象データ全体を圧縮するデータ転送方法と比較して、圧縮時間によるデータ転送時間の悪化を防ぎ、圧縮データの転送によるデータ転送時間短縮の効果を得ることが可能である。   As described above, according to the present invention, compared with the data transfer method that compresses the entire transfer target data, the deterioration of the data transfer time due to the compression time is prevented, and the effect of shortening the data transfer time due to the transfer of the compressed data is obtained. It is possible.

また、データ種別に応じた効率的な判定方法の選択によって判定の時間を削減することにより、判定の時間によるデータ転送時間の悪化を防ぐことが可能になる。   Further, by reducing the determination time by selecting an efficient determination method according to the data type, it is possible to prevent deterioration of the data transfer time due to the determination time.

また、圧縮効果を判定する演算器の性能に応じて判定方法を選択することにより、演算器の処理能力の差異による悪影響を防ぐことが可能になる。   Further, by selecting a determination method according to the performance of the arithmetic unit that determines the compression effect, it is possible to prevent an adverse effect due to a difference in processing capability of the arithmetic unit.

以上で述べた効果により、本発明に記載するデータ転送方法では、データ圧縮によるデータ転送時間短縮の効果を維持しながら、圧縮に要する時間を含めたデータ転送時間を短縮することが可能となる。   Due to the effects described above, in the data transfer method described in the present invention, it is possible to reduce the data transfer time including the time required for the compression while maintaining the effect of reducing the data transfer time by the data compression.

以下、本発明の実施の形態について、図を用いて説明する。
図1は機器組込みシステムのソフトウェア開発に用いられるデバッグシステムの実施形態を示すブロック図であって、101は第1の演算処理装置、102はソースプログラム、103はプログラム変換装置、104は実行形式ファイル、105はセクション情報、106はデバッグ装置、107は第2の演算処理装置、108は第2の演算処理装置107のCPU、109は第2の演算処理装置107のメモリである。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing an embodiment of a debugging system used for software development of a device embedded system, where 101 is a first arithmetic processing unit, 102 is a source program, 103 is a program conversion unit, and 104 is an execution format file. , 105 is section information, 106 is a debugging device, 107 is a second arithmetic processing device, 108 is a CPU of the second arithmetic processing device 107, and 109 is a memory of the second arithmetic processing device 107.

同図において、第1の演算処理装置101は、デバッグを行うための命令を入力し、その結果を出力するシステムであり、プログラム変換装置103やデバッグ装置106が設けられており、第2の演算処理装置107のために開発されたソースプログラム102がプログラム変換装置103でコンパイルされ、第2の演算処理装置107で使用するための実行形式ファイル104が生成される。   In the figure, a first arithmetic processing unit 101 is a system that inputs an instruction for debugging and outputs the result, and is provided with a program conversion unit 103 and a debugging unit 106, and a second arithmetic processing unit 101 is provided. The source program 102 developed for the processing device 107 is compiled by the program conversion device 103, and an execution format file 104 for use by the second arithmetic processing device 107 is generated.

また、第2の演算処理装置107は、デバッグ対象のシステムであり、これで使用されるプログラムを格納するためのメモリ109やこのプログラムを実行して第2の演算処理装置107内の各部の制御や処理を行なうCPU108などを備えており、第1の演算処理装置101から第2の演算処理装置107のメモリへのロードを行い、デバッグ装置106でCPU108で実行される実行形式ファイル104のデバッグを行う。以上が、本発明を実施するデバッグシステムの例であり、本発明は前記の第1の演算処理装置101から第2の演算処理装置107の実行形式ファイル104のデータ転送時間を短縮させるもので、以下に図2を用いて詳細を説明する。   The second arithmetic processing unit 107 is a system to be debugged. The memory 109 for storing a program used in the second arithmetic processing unit 107 and the control of each unit in the second arithmetic processing unit 107 by executing this program. CPU 108 that performs processing, and the like, and loads the memory from the first arithmetic processing unit 101 to the memory of the second arithmetic processing unit 107, and debugs the executable file 104 that is executed by the CPU 108 by the debugging unit 106. Do. The above is an example of a debugging system that implements the present invention, and the present invention shortens the data transfer time of the execution format file 104 of the second arithmetic processing unit 107 from the first arithmetic processing unit 101. Details will be described below with reference to FIG.

図2に示すように、データ転送装置は、本発明におけるデータ転送方法を実施するプログラムであるデバッグ装置106を含む。   As shown in FIG. 2, the data transfer device includes a debug device 106 which is a program for executing the data transfer method of the present invention.

デバッグ装置106は、デバッグ対象となる実行形式ファイル104を読み出す実行形式ファイル読込み部201と、セクション情報作成部202と、セクション情報テーブル203、圧縮効果を判定する圧縮効果判定部204と、データを圧縮する圧縮部205と、データを第2の演算処理装置107に送信する出力部206から構成される。   The debug device 106 includes an execution format file reading unit 201 that reads an execution format file 104 to be debugged, a section information creation unit 202, a section information table 203, a compression effect determination unit 204 that determines a compression effect, and compresses data. A compression unit 205 that transmits data and an output unit 206 that transmits data to the second arithmetic processing unit 107.

このデバッグ装置106で実施されるデータ転送方法の概略を、図6を用いて説明する。   An outline of a data transfer method implemented by the debugging device 106 will be described with reference to FIG.

図6記載のデータ転送方法は、前記セクション情報作成部202で実施されるセクション情報有無判定ステップS101と、セクション情報読み出しステップS102と、セクション情報作成ステップS103と、前記圧縮効果判定部204と、前記圧縮部205と、前記出力部206から構成されるデータ転送ステップS104からなる。   6 includes a section information presence / absence determination step S101, a section information read step S102, a section information generation step S103, the compression effect determination unit 204, and the section information generation unit 202. The data transfer step S104 includes a compression unit 205 and the output unit 206.

以下、前記セクション情報作成部202で実施する各ステップを説明する。
セクション情報有無判定ステップS101は、デバッグ装置106より読込んだ実行形式ファイル104から付加情報であるセクション情報105の有無を判定する。セクション情報105が有ればセクション情報読み出しステップS102へ移り、セクション情報105がなければセクション情報作成ステップS103へ移る。
Hereinafter, each step performed by the section information creation unit 202 will be described.
In the section information presence / absence determination step S101, the presence / absence of section information 105, which is additional information, is determined from the execution format file 104 read from the debug device. If there is section information 105, the process proceeds to section information reading step S102, and if there is no section information 105, the process proceeds to section information creation step S103.

セクション情報読み出しステップS102は、デバッグ装置106より読込んだ実行形式ファイル104から付加情報であるセクション情報105を抽出する。そして、読み出したセクション情報105をセクション情報テーブル203に格納する。   In the section information reading step S102, the section information 105, which is additional information, is extracted from the execution format file 104 read from the debug device 106. The read section information 105 is stored in the section information table 203.

ここで、セクション情報有無判定ステップS101と、セクション情報読み出しステップS102を具体的に説明する。   Here, the section information presence / absence determination step S101 and the section information reading step S102 will be specifically described.

実行形式ファイル104に付加されるセクション情報105は、一般的にELF(Executable and Linking Format)と呼ばれる実行形式フォーマットにより解析する。セクション情報有無判定ステップS101では前記セクション情報の有無を確認、すなわちELFフォーマットであるかどうかで判断するわけだが、ELFフォーマットの確認方法は先頭アドレスのマジックナンバーを読取る等、既存技術であるため詳細説明は省略する。セクション情報読み出しステップS102は、前記セクション情報有無判定ステップS101と同様ELFフォーマットを解析し、セクション情報を取得する。その解析方法は既存技術であるため詳細な説明は省略する。解析した結果より、データ種別、データ開始アドレス、データサイズをセクション情報テーブル203に格納する。   The section information 105 added to the execution format file 104 is analyzed by an execution format called an ELF (Executable and Linking Format). In section information presence / absence determination step S101, the presence / absence of the section information is confirmed, that is, whether or not the ELF format is used. The ELF format confirmation method is an existing technique such as reading the magic number of the head address, and therefore will be described in detail. Is omitted. The section information reading step S102 analyzes the ELF format in the same manner as the section information presence / absence determination step S101, and acquires section information. Since the analysis method is an existing technique, a detailed description is omitted. Based on the analysis result, the data type, data start address, and data size are stored in the section information table 203.

次に、セクション情報作成ステップS103の詳細を図7を用いて説明する。
図7記載のセクション情報作成ステップS103は、先頭ブロック読み出しステップS201、読み出しデータ領域確認ステップS202、読み出しデータ分割ステップS203、セクション情報作成ステップS204、セクション情報作成完了確認ステップS205、次ブロック読み出しステップS206からなる。
Next, details of the section information creation step S103 will be described with reference to FIG.
The section information creation step S103 shown in FIG. 7 is from the first block read step S201, the read data area confirmation step S202, the read data division step S203, the section information creation step S204, the section information creation completion confirmation step S205, and the next block read step S206. Become.

以下、前記セクション情報作成S103を構成する各ステップを説明する。
先頭ブロック読み出しステップS201は、デバッグ装置106より読込んだ実行形式ファイル104の先頭ブロックを読み出す。
Hereinafter, each step constituting the section information creation S103 will be described.
In the first block read step S201, the first block of the executable file 104 read from the debug device 106 is read.

読み出しデータ領域確認ステップS202は、先頭ブロック読み出しステップS201もしくは、次ブロック読み出しステップS206より、読み出したデータが複数の記憶領域に跨るか否かを判定する。複数の記憶領域に跨る場合は、読み出しデータ分割ステップS203へ移り、複数の記憶領域に跨らない場合は、セクション情報作成ステップS204へ移る。   In the read data area confirmation step S202, it is determined whether or not the read data extends over a plurality of storage areas in the first block read step S201 or the next block read step S206. If it extends over a plurality of storage areas, the process proceeds to read data division step S203, and if it does not extend over a plurality of storage areas, the process proceeds to section information creation step S204.

読み出しデータ分割ステップS203は、2つ目以降の記憶領域に配置されているデータを別ブロックとして分割する。   The read data dividing step S203 divides the data arranged in the second and subsequent storage areas as separate blocks.

セクション情報作成ステップS204は、読み出したデータの記憶領域種別、先頭アドレス、データサイズから、図5の例に示す、データ種別、データ開始アドレス、データサイズの情報を格納するデータセクション情報501を作成する。   The section information creation step S204 creates data section information 501 for storing data type, data start address, and data size information shown in the example of FIG. 5 from the storage area type, head address, and data size of the read data. .

セクション情報作成完了ステップS205は、実行形式ファイル104すべてのブロックのセクション情報501を作成したか否かの判定を行う。すべてのブロックに対してセクション情報501が作成されていない場合は、次ブロック読み出しステップS206へ移り、すべてのブロックに対してセクション情報501の作成が完了していたならセクション情報作成ステップS205は終了する。   In the section information creation completion step S205, it is determined whether or not the section information 501 of all blocks of the execution format file 104 has been created. If the section information 501 has not been created for all the blocks, the process proceeds to the next block reading step S206. If the section information 501 has been created for all the blocks, the section information creating step S205 ends. .

次ブロック読み出しステップS206は、セクション情報作成ステップS204より処理が完了したブロックの次のブロックを読み出す。   In the next block read step S206, the block next to the block that has been processed in the section information creation step S204 is read.

ここで図を用いて、読み出しデータ分割ステップS203を具体的に説明する。
図3に一例を示す。
Here, the read data dividing step S203 will be specifically described with reference to the drawings.
An example is shown in FIG.

実行形式ファイル104に含まれる転送対象データというものは、全てが連続したアドレスに配置されるわけではなく、図3記載のように、複数のブロックに分けられて配置される。図3には、実行形式ファイル104に含まれるデータが2つのブロックに分割されて配置されることを示している。ブロック301の最終アドレスとブロック302の先頭アドレスは連続していない。   The transfer target data included in the executable file 104 is not all arranged at continuous addresses, but is divided into a plurality of blocks as shown in FIG. FIG. 3 shows that the data included in the executable file 104 is divided into two blocks and arranged. The final address of the block 301 and the head address of the block 302 are not continuous.

また、ブロック301及びブロック302が配置される記憶領域はアドレスにより分割され、それぞれ異なる属性を持つ。   In addition, the storage areas in which the blocks 301 and 302 are arranged are divided by addresses and have different attributes.

ここで言う異なる属性とは、一般的に言う、命令メモリ領域やデータメモリ領域のことを指す。   The different attributes referred to here refer generally to an instruction memory area and a data memory area.

図3記載のブロック301のように複数の記憶領域に跨るブロックがある場合、記憶領域303のデータ以外を、別ブロックとして分割する。   When there is a block extending over a plurality of storage areas like the block 301 shown in FIG. 3, data other than the data in the storage area 303 is divided as another block.

分割した後の状態を図4に示す。
連続した領域ブロック301は記憶領域303に属するブロック401と、それ以外の記憶領域に属するブロック402とに分割される。
The state after the division is shown in FIG.
The continuous area block 301 is divided into a block 401 belonging to the storage area 303 and a block 402 belonging to other storage areas.

分割後のブロック401に関しては、前記読み出しデータ分割ステップS203を行わないときと同様、セクション情報作成ステップS204へ移る。   As for the divided block 401, the process proceeds to the section information creation step S204 as in the case where the read data division step S203 is not performed.

前記データ転送ステップS104の詳細を図8を用いて説明する。
前記データ転送ステップS104は、初期転送セクション設定ステップS301と、転送セクションデータ読込みステップS302と、前記圧縮効果判定部204で実施される圧縮効果判定ステップS303と、圧縮効果判定結果確認ステップS304と、前記圧縮部205で実施される圧縮ステップS305と、前記出力部206実施されるデータ出力ステップS306と、転送完了確認ステップS307、次転送セクション設定ステップS308からなる。
Details of the data transfer step S104 will be described with reference to FIG.
The data transfer step S104 includes an initial transfer section setting step S301, a transfer section data reading step S302, a compression effect determination step S303 performed by the compression effect determination unit 204, a compression effect determination result confirmation step S304, A compression step S305 executed by the compression unit 205, a data output step S306 executed by the output unit 206, a transfer completion confirmation step S307, and a next transfer section setting step S308.

以下、前記データ転送ステップS104を構成する各ステップを説明する。
初期転送セクション設定ステップS301は、セクション情報テーブル203の先頭セクション情報501を転送対象とする。
Hereinafter, each step constituting the data transfer step S104 will be described.
In the initial transfer section setting step S301, the first section information 501 of the section information table 203 is to be transferred.

転送セクションデータ読込みステップS302は転送対象のセクションのデータを実行形式ファイル104から読み出す。   In the transfer section data reading step S302, the data of the section to be transferred is read from the execution format file 104.

圧縮効果判定ステップS303は、初期転送セクション設定ステップS301もしくは、次転送セクション設定ステップS308より設定された転送対象のセクションに対して、圧縮効果の判定を行う。   In the compression effect determination step S303, the compression effect is determined for the transfer target section set in the initial transfer section setting step S301 or the next transfer section setting step S308.

圧縮効果判定結果確認ステップS304は、圧縮効果判定ステップS303より判定された圧縮効果が高ければ、圧縮ステップS305へ移り、圧縮効果が低ければ、出力ステップS306へ移る。   In the compression effect determination result confirmation step S304, if the compression effect determined in the compression effect determination step S303 is high, the process proceeds to the compression step S305, and if the compression effect is low, the process proceeds to the output step S306.

圧縮ステップS305は、前記圧縮効果判定ステップS303より圧縮効果の高いとされたセクションのデータの圧縮を行う。   The compression step S305 compresses the data of the section that is determined to have a higher compression effect than the compression effect determination step S303.

ここで、圧縮ステップS305を具体的に説明する。
本発明の圧縮ステップS305は、既存の圧縮方法、例えば連長圧縮法(ランレングス圧縮)を用いた場合、圧縮効果判定部204による情報で、圧縮効果の高いとみなされた領域のバイナリデータ、例えば、AAAAABBBBBBBBBFFFFFFFを受け取るとA5B9F7に圧縮し、出力部206へ出力される。圧縮法としては、このほかにもHuffman法、算術圧縮、LZ法などがある。
Here, the compression step S305 will be specifically described.
In the compression step S305 of the present invention, when an existing compression method, for example, a continuous length compression method (run-length compression) is used, binary data in an area considered to have a high compression effect by information by the compression effect determination unit 204, For example, when AAAAABBBBBBBBBBFFFFFFFF is received, it is compressed to A5B9F7 and output to the output unit 206. Other compression methods include the Huffman method, arithmetic compression, and LZ method.

出力ステップS306は、前記圧縮ステップS305より圧縮されたデータもしくは、前記圧縮効果判定ステップS303より圧縮効果が低いと判定された非圧縮のデータを第2の演算処理装置107へ出力する。   The output step S306 outputs the data compressed in the compression step S305 or the uncompressed data determined to have a lower compression effect than the compression effect determination step S303 to the second arithmetic processing unit 107.

転送完了確認ステップS307は、セクション情報テーブル203に格納されているすべてのセクションに対して、転送が完了したか否かを判定する。すべてのセクションに対して、転送が完了していなければ、次転送セクション設定ステップS308へ移り、同様の処理を繰り返し、転送が完了していれば、データ転送ステップS104は終了し、データ転送は終了する。   The transfer completion confirmation step S307 determines whether or not the transfer has been completed for all the sections stored in the section information table 203. If the transfer has not been completed for all sections, the process proceeds to the next transfer section setting step S308, and the same processing is repeated. If the transfer is completed, the data transfer step S104 is completed and the data transfer is completed. To do.

次に、前記圧縮効果判定部204で実施する圧縮効果判定ステップS303の詳細を図9を用いて説明する。   Next, details of the compression effect determination step S303 performed by the compression effect determination unit 204 will be described with reference to FIG.

図9記載の圧縮効果判定ステップS303は、性能評価ステップS401と、データ種別情報取得ステップS402、データ別圧縮効果判定ステップS403と、情報量大小判定ステップS405と、圧縮効果高設定ステップS407と、圧縮効果低設定ステップS406と、データ情報量算出ステップS404からなる。   The compression effect determination step S303 illustrated in FIG. 9 includes a performance evaluation step S401, a data type information acquisition step S402, a data-specific compression effect determination step S403, an information amount magnitude determination step S405, a compression effect high setting step S407, a compression It consists of a low effect setting step S406 and a data information amount calculating step S404.

以下、前記圧縮効果判定ステップS303を構成する各ステップを説明する。
性能評価ステップS401は、第1の演算処理装置101の性能を高いか否かで評価する。性能が高ければデータ情報量算出ステップS404へ移り、性能が低ければ、データ種別情報取得ステップS403へ移る。
Hereinafter, each step constituting the compression effect determination step S303 will be described.
The performance evaluation step S401 evaluates whether the performance of the first arithmetic processing unit 101 is high. If the performance is high, the process proceeds to a data information amount calculation step S404. If the performance is low, the process proceeds to a data type information acquisition step S403.

データ種別情報取得ステップS402は、セクション情報テーブル203より転送対象となっているデータのデータ種別を取得する。   The data type information acquisition step S402 acquires the data type of the data to be transferred from the section information table 203.

データ別圧縮効果判定ステップS403は、前記データ種別情報取得ステップS402により取得したデータ種別が命令ならば、圧縮効果高設定ステップS407へ移り、データ種別が非命令ならば、圧縮効果低設定ステップS406へ移る。   If the data type acquired in the data type information acquisition step S402 is a command, the data-by-data compression effect determination step S403 proceeds to a compression effect high setting step S407, and if the data type is a non-command, the process proceeds to a compression effect low setting step S406. Move.

圧縮効果高設定ステップS407は、転送対象となっているデータを圧縮効果が高いと設定する。   The compression effect high setting step S407 sets the data to be transferred as having a high compression effect.

圧縮効果低設定ステップS406は、転送対象となっているデータを圧縮効果が低いと設定する。   The low compression effect setting step S406 sets the data to be transferred as having a low compression effect.

データ情報量算出ステップS404は、転送対象となっているデータの情報量を演算により算出する。   In the data information amount calculation step S404, the information amount of the data to be transferred is calculated by calculation.

情報量大小判定ステップS405は、データの情報量が少ない場合は、前記圧縮高設定ステップS407へ移り、データの情報量が多い場合は、前記圧縮低設定S406ステップへ移る。   The information amount determination step S405 proceeds to the compression height setting step S407 when the data information amount is small, and proceeds to the compression low setting S406 step when the data information amount is large.

ここで、性能評価ステップS401を具体的に説明する。
性能評価ステップS401で行う、性能評価は、SPECintや、SPECfp等、既存技術により行えるため詳細説明は省略する。性能評価ステップS401性能評価に対する閾値を予め設定しておき、閾値より高ければ第1の演算処理装置101の性能は高いとし、閾値より低ければ、第1の演算処理装置101の性能は低いとする。
Here, the performance evaluation step S401 will be specifically described.
Since the performance evaluation performed in the performance evaluation step S401 can be performed by existing technologies such as SPECint and SPECfp, detailed description is omitted. A threshold for performance evaluation is set in advance in the performance evaluation step S401. If the threshold is higher than the threshold, the performance of the first arithmetic processing device 101 is high. If the threshold is lower than the threshold, the performance of the first arithmetic processing device 101 is low. .

前記出力部206で実施する出力ステップの詳細を図10を用いて説明する。
図10記載の出力ステップS306は、転送データ生成ステップS501と、データ転送ステップS502からなる。
Details of the output step performed by the output unit 206 will be described with reference to FIG.
The output step S306 illustrated in FIG. 10 includes a transfer data generation step S501 and a data transfer step S502.

以下、前記出力ステップS306を構成する各ステップを説明する。
転送データ生成ステップS501は、転送対象となっているデータの圧縮状態、非圧縮状態に応じて、付加情報のヘッダをつける。
Hereinafter, each step constituting the output step S306 will be described.
In the transfer data generation step S501, a header of additional information is attached according to the compressed state and uncompressed state of the data to be transferred.

データ転送ステップS502は、転送データ生成ステップS501より生成されたデータを第2の演算処理装置107へ出力する。   The data transfer step S502 outputs the data generated in the transfer data generation step S501 to the second arithmetic processing unit 107.

ここで、転送データ生成ステップS501を具体的に説明する。
転送対象データは、前記圧縮ステップS305によって圧縮状態もしくは、圧縮効果が低いとされて、非圧縮状態で出力ステップS306に移る。この時、第2の演算処理装置107は、ダウンロードされてきたデータに対して、伸張を行うか否かの判断が行えるようにするために、転送データ生成ステップS501によって転送対象データにヘッダを付加する。ここでは例として、1bitの情報を先頭にヘッダとして付加し、圧縮されていたら先頭に1、非圧縮ならば先頭に0を付加することで第2の演算処理装置107は判断をする。
Here, the transfer data generation step S501 will be specifically described.
The data to be transferred is determined to be in a compressed state or a low compression effect by the compression step S305, and proceeds to the output step S306 in an uncompressed state. At this time, the second arithmetic processing unit 107 adds a header to the transfer target data in the transfer data generation step S501 so that it can be determined whether or not to expand the downloaded data. To do. Here, as an example, the second arithmetic processing unit 107 makes a determination by adding 1-bit information as a header at the head, adding 1 at the head if compressed, and adding 0 at the head if uncompressed.

前記のように構成することで、効果的にデータ転送時間を短縮するデータ転送方法及びデータ転送装置を実現することができる。   By configuring as described above, it is possible to realize a data transfer method and a data transfer apparatus that can effectively reduce the data transfer time.

本発明にかかるデータ転送方法及びデータ転送装置は、大容量のデータ転送を必要としている演算処理装置に対して適用可能である。   The data transfer method and data transfer device according to the present invention can be applied to an arithmetic processing device that requires large-capacity data transfer.

効果的に圧縮を行うことで、データ転送時間を短縮するデータ転送方法及びデータ転送装置の特徴は、演算処理装置間のデータ転送を必要とするソフトウェア開発において有用になる。   The feature of the data transfer method and data transfer device that shortens the data transfer time by effectively compressing the data becomes useful in software development that requires data transfer between the arithmetic processing devices.

本発明の実施形態におけるデバッグシステムの構成を示すブロック図The block diagram which shows the structure of the debug system in embodiment of this invention 本発明の実施形態におけるデータ転送装置の構成を示すブロック図The block diagram which shows the structure of the data transfer apparatus in embodiment of this invention 本発明の実施形態における複数の記憶領域に跨るブロックの一例を示す図The figure which shows an example of the block over a some storage area in embodiment of this invention 本発明の実施形態における複数の記憶領域に跨るブロックの分割後の一例を示す図The figure which shows an example after the division | segmentation of the block over a some storage area in embodiment of this invention 本発明の実施形態におけるセクション情報の一例を示す図The figure which shows an example of the section information in embodiment of this invention 本発明の実施形態におけるデータ転送装置で実施されるデータ転送方法の概略を示すフローチャートThe flowchart which shows the outline of the data transfer method implemented with the data transfer apparatus in embodiment of this invention 本発明の実施形態におけるセクション情報作成部で実施されるセクション情報作成ステップを示すフローチャートThe flowchart which shows the section information creation step implemented by the section information creation part in embodiment of this invention 本発明の実施形態におけるデータ転送ステップを示すフローチャートThe flowchart which shows the data transfer step in embodiment of this invention 本発明の実施形態における圧縮効果判定部で実施される圧縮効果判定ステップを示すフローチャートThe flowchart which shows the compression effect determination step implemented by the compression effect determination part in embodiment of this invention. 本発明の実施形態における出力部で実施される出力ステップを示すフローチャートThe flowchart which shows the output step implemented by the output part in embodiment of this invention CPUの処理能力と圧縮率とに応じて異なるデータ圧縮時間とデータ転送時間とを示す説明図Explanatory drawing which shows the data compression time and data transfer time which differ according to the processing capacity and compression rate of CPU

符号の説明Explanation of symbols

101 第1の演算処理装置
102 ソースプログラム
103 プログラム変換装置
104 実行形式ファイル
105 セクション情報
106 デバッグ装置
107 第2の演算処理装置
108 CPU
109 メモリ
201 実行形式ファイル読込み部
202 セクション情報作成部
203 セクション情報テーブル
204 圧縮効果判定部
205 圧縮部
206 出力部
301 ブロック
302 ブロック
303 記憶領域
304 記憶領域
305 記憶領域
306 記憶領域
401 ブロック
402 ブロック
501 セクション情報
DESCRIPTION OF SYMBOLS 101 1st arithmetic processing unit 102 Source program 103 Program conversion apparatus 104 Execution format file 105 Section information 106 Debugging device 107 2nd arithmetic processing unit 108 CPU
109 Memory 201 Execution Format File Reading Unit 202 Section Information Creation Unit 203 Section Information Table 204 Compression Effect Judgment Unit 205 Compression Unit 206 Output Unit 301 Block 302 Block 303 Storage Area 304 Storage Area 305 Storage Area 306 Storage Area 401 Block 402 Block 501 Section information

Claims (11)

通信路を介して演算処理装置にデータを転送するデータ転送方法であって、
転送対象データの全部または一部分についてデータ圧縮が転送時間の短縮に有効であるか否かを判定する圧縮効果判定ステップと、
前記圧縮効果判定ステップにおいて有効と判定された場合に、前記圧縮効果判定ステップにおける判定対象データを圧縮する圧縮ステップと、
前記圧縮ステップにおいて圧縮されたデータを通信路を介して前記演算処理装置に送信する第1の送信ステップと、
前記圧縮効果判定ステップにおいて有効でないと判定された場合に、前記圧縮効果判定ステップにおける判定対象データを圧縮せずに通信路を介して前記演算処理装置に送信する第2の送信ステップと
を有するデータ転送方法。
A data transfer method for transferring data to an arithmetic processing unit via a communication path,
A compression effect determination step for determining whether or not data compression is effective for shortening the transfer time for all or part of the transfer target data;
A compression step of compressing determination target data in the compression effect determination step when it is determined to be valid in the compression effect determination step;
A first transmission step of transmitting the data compressed in the compression step to the arithmetic processing unit via a communication path;
Data having a second transmission step of transmitting to the arithmetic processing unit via a communication path without compressing the determination target data in the compression effect determination step when it is determined that the compression effect determination step is not effective Transfer method.
請求項1記載の圧縮効果判定ステップは、
前記転送対象データを構成する部分データ毎に、その種別を示すデータ種別情報を取得するデータ種別情報取得ステップと、
前記データ種別情報取得ステップで取得した前記データ種別情報から当該部分データのデータ圧縮が転送時間の短縮に有効であるか否かを判定するデータ別圧縮効果判定ステップと
を有する請求項1記載のデータ転送方法。
The compression effect determination step according to claim 1 comprises:
For each partial data constituting the transfer target data, a data type information acquisition step for acquiring data type information indicating the type, and
The data according to claim 1, further comprising: a data-based compression effect determination step for determining whether data compression of the partial data is effective in reducing transfer time from the data type information acquired in the data type information acquisition step. Transfer method.
請求項2記載のデータ種別情報取得ステップは、
前記演算処理装置上で実行可能なプログラムを含む実行形式ファイルを前記転送対象データとして読み出す読み出しステップと、
前記実行形式ファイルに含まれるセクション情報を、前記部分データのデータ種別情報として取得するセクション情報取得ステップと
を有する請求項2記載のデータ転送方法。
The data type information acquisition step according to claim 2 comprises:
A reading step of reading out an executable file containing a program executable on the arithmetic processing unit as the transfer target data;
The data transfer method according to claim 2, further comprising: a section information acquisition step of acquiring section information included in the execution format file as data type information of the partial data.
請求項2記載のデータ種別情報取得ステップにおいて、
前記転送対象データの格納先となる前記演算処理装置の記憶領域の配置情報を前記データ種別情報として取得する
ことを特徴とする請求項2記載のデータ転送方法。
In the data type information acquisition step according to claim 2,
The data transfer method according to claim 2, wherein arrangement information of a storage area of the arithmetic processing unit that is a storage destination of the transfer target data is acquired as the data type information.
請求項2記載のデータ種別情報取得ステップは、
前記第2の演算処理装置上で実行可能なプログラムを含む実行形式ファイルを読み出す実行形式読み出しステップと、
前記実行形式ファイルにセクション情報が含まれるか否かを判定するセクション情報有無確認ステップと、
前記セクション情報有無確認ステップの結果、セクション情報が実行形式ファイルに含まれると確認された場合には、実行形式ファイルに含まれるプログラムのセクション情報をデータ種別情報として取得するセクション情報取得ステップと
前記セクション情報有無確認ステップの結果、セクション情報が実行形式ファイルに含まれないと確認された場合には、前記転送対象データの格納先となる前記演算処理装置の記憶領域の配置情報をデータ種別情報として取得する記憶領域配置情報取得ステップと
を有する請求項2記載のデータ転送方法。
The data type information acquisition step according to claim 2 comprises:
An execution format reading step of reading an execution format file including a program executable on the second arithmetic processing unit;
A section information presence / absence confirmation step for determining whether or not section information is included in the executable format file;
As a result of the section information presence / absence confirmation step, when it is confirmed that the section information is included in the execution format file, a section information acquisition step for acquiring section information of the program included in the execution format file as data type information; and If it is confirmed that the section information is not included in the execution format file as a result of the information presence / absence confirmation step, the storage area arrangement information of the arithmetic processing unit that is the storage destination of the transfer target data is acquired as data type information. The data transfer method according to claim 2, further comprising: a storage area arrangement information acquisition step.
請求項2記載の圧縮効果判定ステップは、
データ種別が前記第2の演算処理装置で実行される命令であるか否かを判定する命令判定ステップと、
前記命令判定ステップでデータ種別が命令と判定された場合、第1のアルゴリズムによってデータ圧縮が転送時間の短縮に有効であるか否かを判定する第1判定ステップと、
前記命令判定ステップでデータ種別が命令でないと判定された場合、第2のアルゴリズムによってデータ圧縮が転送時間の短縮に有効であるか否か判定する第2判定ステップと
を有する請求項2記載のデータ転送方法。
The compression effect determination step according to claim 2 comprises:
An instruction determination step for determining whether or not the data type is an instruction executed by the second arithmetic processing unit;
A first determination step of determining whether or not data compression is effective in reducing transfer time by a first algorithm when the data type is determined to be an instruction in the instruction determination step;
3. The data according to claim 2, further comprising: a second determination step of determining whether data compression is effective for shortening a transfer time by a second algorithm when it is determined that the data type is not an instruction in the instruction determination step. Transfer method.
請求項6記載の第1の判定ステップにおいて、
常にデータ圧縮が転送時間の短縮に有効であると判定することを特徴とする請求項6記載のデータ転送方法。
In the first determination step according to claim 6,
7. The data transfer method according to claim 6, wherein it is always determined that data compression is effective for shortening the transfer time.
請求項1記載の圧縮効果判定ステップは、
圧縮効果判定ステップを実施する演算器の処理性能が閾値よりも高いか否かを判定する演算性能判定ステップと、
前記演算性能判定ステップで処理性能が閾値よりも高いと判定された場合、データ圧縮が転送時間の短縮に有効であるか否かを判定する第1の判定ステップと、
前記演算性能判定ステップで演算性能が低いと判定された場合、第1の判定ステップより計算量が少ない方法で、データ圧縮が転送時間の短縮に有効であるか否かを判定する第2の判定ステップと、
を有することを特徴とする請求項1記載のデータ転送方法。
The compression effect determination step according to claim 1 comprises:
A calculation performance determination step for determining whether or not the processing performance of the computing unit that performs the compression effect determination step is higher than a threshold;
A first determination step for determining whether or not data compression is effective for shortening a transfer time when it is determined in the calculation performance determination step that the processing performance is higher than a threshold;
A second determination for determining whether or not data compression is effective in reducing the transfer time by a method having a smaller amount of calculation than the first determination step when the calculation performance is determined to be low in the calculation performance determination step; Steps,
The data transfer method according to claim 1, further comprising:
請求項1ないし8の何れか1項に記載のデータ転送方法を実行させる
ことを特徴とするコンピュータ読み取り可能なプログラム。
A computer-readable program for executing the data transfer method according to any one of claims 1 to 8.
通信路を介して演算処理装置にデータを送信するデータ転送装置であって、
転送対象データの全部または一部分についてデータ圧縮が転送時間の短縮に有効であるか否かを判定する圧縮効果判定手段と、
前記圧縮効果判定手段によって有効と判定された場合に、前記圧縮効果判定手段による判定対象データを圧縮する圧縮手段と、
前記圧縮手段によって圧縮されたデータを通信路を介して前記演算処理装置に送信し、
前記圧縮効果判定手段によって有効でないと判定された判定対象データを圧縮せずに通信路を介して前記演算処理装置に送信する送信手段と
を備えるデータ転送装置。
A data transfer device that transmits data to an arithmetic processing unit via a communication path,
Compression effect determination means for determining whether or not data compression is effective for shortening the transfer time for all or part of the transfer target data;
A compression unit that compresses determination target data by the compression effect determination unit when it is determined to be valid by the compression effect determination unit;
Transmitting the data compressed by the compression means to the arithmetic processing unit via a communication path;
A data transfer apparatus comprising: a transmission unit configured to transmit the determination target data determined to be invalid by the compression effect determination unit to the arithmetic processing unit via a communication path without being compressed.
請求項10記載のデータ転送装置を備え、
デバッグ対象としての前記演算処理装置に転送対象データを送信する
ことを特徴とするデバッグ装置。
A data transfer device according to claim 10,
A debug device, wherein the transfer target data is transmitted to the arithmetic processing device as a debug target.
JP2007007440A 2007-01-16 2007-01-16 Data transfer method, data transfer device, and debugging device Pending JP2008176420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007007440A JP2008176420A (en) 2007-01-16 2007-01-16 Data transfer method, data transfer device, and debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007007440A JP2008176420A (en) 2007-01-16 2007-01-16 Data transfer method, data transfer device, and debugging device

Publications (1)

Publication Number Publication Date
JP2008176420A true JP2008176420A (en) 2008-07-31

Family

ID=39703414

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007007440A Pending JP2008176420A (en) 2007-01-16 2007-01-16 Data transfer method, data transfer device, and debugging device

Country Status (1)

Country Link
JP (1) JP2008176420A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012142919A (en) * 2010-12-17 2012-07-26 Canon Inc Transmitter and transmission method
WO2014024610A1 (en) 2012-08-07 2014-02-13 日本電気株式会社 Data forwarding device, data forwarding method, and program
EP2860631A2 (en) 2013-09-25 2015-04-15 Fujitsu Limited Information processing system, control method, and control program
US10739998B2 (en) 2017-09-20 2020-08-11 Toshiba Memory Corporation Memory system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012142919A (en) * 2010-12-17 2012-07-26 Canon Inc Transmitter and transmission method
WO2014024610A1 (en) 2012-08-07 2014-02-13 日本電気株式会社 Data forwarding device, data forwarding method, and program
US9769241B2 (en) 2012-08-07 2017-09-19 Nec Corporation Data transfer device, data transfer method, and program storage medium
EP2860631A2 (en) 2013-09-25 2015-04-15 Fujitsu Limited Information processing system, control method, and control program
US9882971B2 (en) 2013-09-25 2018-01-30 Fujitsu Limited Information processing system, control method, and recording medium
US10739998B2 (en) 2017-09-20 2020-08-11 Toshiba Memory Corporation Memory system

Similar Documents

Publication Publication Date Title
JP4669088B1 (en) Test apparatus, test method and program
JP5780167B2 (en) Memory accuracy check in distributed computer systems.
US8443178B2 (en) Operating system image shrinking apparatus and method and computer readable tangible medium storing a program for operating system image shrinking
JP2009054003A (en) Image processing unit and program
JP2008176420A (en) Data transfer method, data transfer device, and debugging device
US20130262808A1 (en) Compression and decompression system, compression apparatus, decompression apparatus and compression and decompression method
JP2007141072A (en) Trace information output device
US20150331786A1 (en) Path execution reduction in software program verification
US10078638B2 (en) Secure hyper transfer of large files
US8976373B2 (en) Image processing apparatus, computer-readable storage medium storing program and image processing method
JP2005092858A (en) Printing system, print request terminal, compression algorithm selecting program, and printing method
US20160084906A1 (en) Debug circuit, semiconductor device, and debug method
JP6458626B2 (en) Debug circuit, semiconductor device, and debugging method
CN111290364A (en) Method for monitoring usage of electronic control device of vehicle
US10318422B2 (en) Computer-readable recording medium storing information processing program, information processing apparatus, and information processing method
JP2008250838A (en) Software generation device, method and program
JP2010020416A (en) Data transfer method and data transfer unit
US9882971B2 (en) Information processing system, control method, and recording medium
US10452368B2 (en) Recording medium having compiling program recorded therein, information processing apparatus, and compiling method
JP2008158662A (en) Memory access trace information acquisition method, memory access trace information acquisition device, memory access trace information acquisition program and recording medium
JP5545133B2 (en) Static analysis processing system, method, and program
JP5093508B2 (en) Loop optimization system, loop optimization method, and loop optimization program
JP4446389B2 (en) Interface device for compression / decompression module
JP2015072531A (en) Test support method, test support device, and program
KR20140108378A (en) Detecting system and detecting method for malicious code infection of compressed file