@article{oai:ipsj.ixsq.nii.ac.jp:00016727, author = {丸山, 一貴 and 寺田, 実 and Kazutaka, Maruyama and Minoru, Terada}, issue = {SIG13(PRO18)}, journal = {情報処理学会論文誌プログラミング(PRO)}, month = {Oct}, note = {関数呼び出しやループなど,プログラムの制御がジャンプするときに,あるカウンタ(タイムスタンプ)をインクリメントすると,ソースコードの行番号とタイムスタンプの値の組によってプログラム実行系列における1点(プログラム実行点)を識別可能になる.これはデバッグなどにおけるプログラムの実行制御に応用できる.この仕組みをJavaプログラムに対して実装した.コンパイル済みのクラスファイルを変換し,制御をジャンプさせるバイトコードの直前にタイムスタンプを更新するバイトコードを挿入することで実現している.本論文ではこのプログラム実行点の応用について述べ,実装に関する詳細と,付加コードによるオーバヘッドの計測の結果について述べる., We propose an idea of identifying a point in a program execution trace by a pair of “line number in source files” and a counter, “timestamp”. The counter increases when a control point in a program jumps such as function calls and loops. We call the point in a trace“position” and apply it to the execution control of programs for debugging, and so on. We implemented the timestamp system for Java programs. Transforming Java class files, we inserted bytecodes for updating timestamp just before the control point jumps. In this paper, we describe the applications and the implementation details of “position”. Overhead measurement of added codes is also included.}, pages = {38--46}, title = {クラスファイル変換によるJavaプログラムの実行制御}, volume = {44}, year = {2003} }