• 検索結果がありません。

バイトコード変換を用いたJava標準API拡張ツール

N/A
N/A
Protected

Academic year: 2021

シェア "バイトコード変換を用いたJava標準API拡張ツール"

Copied!
1
0
0

読み込み中.... (全文を見る)

全文

(1)Vol. 43. No. SIG 3(PRO 14). Mar. 2002. 情報処理学会論文誌:プログラミング. 発表概要. バイト コード 変換を用いた Java 標準 API 拡張ツール 田 森. 中. 雅 智. 浩† 彦†. 鎌田 瀧. 十 三 郎†† 和 男††. Java 上で実行効率を重視したプログラムを作成している際,しばしば Java 言語の標準 API を 拡張したいという要求が生じ ることがある.たとえば,マルチスレッドプログラミングを行う際に, Thread ごとにデータを保持させたい場合を考える.この場合,Thread オブジェクトと付加したい データをハッシュなどで連想して用いるのが一般的な方法である.しかし,この方法では,データへ のアクセス速度が遅くなってしまうという問題がある.これらの問題を解決するため,本研究では, 標準 API を容易にカスタマイズして利用可能にするツールを提供する.ユーザは標準 API への機能 拡張を,Java の継承に似た形で記述することで,拡張された API を利用したプログラミングを行う ことができる.前述の例では,Thread クラスに対して直接データフィールド を追加することで,拡 張された Thread クラス中のデータへ,高速なアクセスが可能になる.本ツールは,標準 API を構 成するクラスライブラリにバイトコード 変換を行うことで,拡張 API 用クラスライブラリを作成す る.ユーザ記述に対応してバイトコード 変換を行う変換器を,本ツールが自動生成することで,既存 の Java 処理系中の対象クラスを拡張する.最後に,本ツールを利用したプログラム実行効率の改善 について,スレッド ローカルに関するベンチマークプログラムを通して評価を行った.. A Customizing Tool for Java Standard API Using Bytecode Translation Masahiro Tanaka,† Tomio Kamada,†† Tomohiko Mori† and Kazuo Taki†† Java offers the standard API specification. However, there is a situation where programmers want to customize API to write efficient programs. For example, to provide new thread local variables, the programmer may have to use hash functions to map a thread to the corresponding variables with heavy access overheads. To solve these problems, this presentation proposes an API customizing tool that allows the user to customize API easily. The user can write differential programs in Java-like manner to mix into the original API class files. In the previous case, the programmer only has to write a mix-in program to add new thread local data fields to the Thread class, and gains direct access to the local variables. To provide customized API class library, our tool automatically generates a bytecode translator from mix-in programs, and the translator translates original classfiles of the target classes into customized ones. We implement the above thread local library using our API customizing tool, and evaluate the improvement of program execution speed through benchmark programs.. ( 平成 13 年 7 月 27 日発表). 本発表の詳細は下記を参照されたい.  http://www.takilab.cs.kobe-u.ac.jp/~opa/Cusapi/cusapiHome.html. † 神戸大学大学院自然科学研究科 Graduate School of Science and Technology, Kobe University †† 神戸大学工学部情報知能工学科 Department of Computer and System Engineering, Kobe University. 86.

(2)

参照

関連したドキュメント

Thus, we use the results both to prove existence and uniqueness of exponentially asymptotically stable periodic orbits and to determine a part of their basin of attraction.. Let

In this paper, we generalize the concept of Ducci sequences to sequences of d-dimensional arrays, extend some of the basic results on Ducci sequences to this case, and point out

The main problem upon which most of the geometric topology is based is that of classifying and comparing the various supplementary structures that can be imposed on a

Then it follows immediately from a suitable version of “Hensel’s Lemma” [cf., e.g., the argument of [4], Lemma 2.1] that S may be obtained, as the notation suggests, as the m A

The proof uses a set up of Seiberg Witten theory that replaces generic metrics by the construction of a localised Euler class of an infinite dimensional bundle with a Fredholm

サーバー API 複雑化 iOS&Android 間で複雑な API

7.1. Deconvolution in sequence spaces. Subsequently, we present some numerical results on the reconstruction of a function from convolution data. The example is taken from [38],

While conducting an experiment regarding fetal move- ments as a result of Pulsed Wave Doppler (PWD) ultrasound, [8] we encountered the severe artifacts in the acquired image2.