Tamarinのビルド
オープンソースのActionScript3 VMのTamarinのビルド方法。参考: http://developer.mozilla.org/en/docs/Tamarin_Build_Documentation
まず、Tamarinをレポジトリからコピーする。
$ hg clone http://hg.mozilla.org/mozilla-central mozilla-central
そして、本体をコンパイルする。
$ cd tamarin-central $ xcodebuild ARCHS=ppc -project platform/mac/shell/shell.xcodeproj
platform/mac/shell/build/Release/shellがTamarin本体。たいていのドキュメントでは、これをavmplusとして参照する。
次にFlex3 SDKに含まれるasc.jarを適当なディレクトリに置く。
そして、bulitin.abcをコンパイルする。
$ cd tamarin-central/core $ export ASC=/path/to/asc.jar $ python builtin.py
これでやっとHello,worldが書ける。
$ echo 'print("hello, world")' > hello.as $ java -jar /path/to/asc.jar -import /path/to/builtin.abc hello.as hello.abc, 86 bytes written $ avmplus hello.abc hello, world