Twitter
Essays
Random
« Trace Tree Visualization | Main | Confessions of an Economic Hit Man »
Tuesday
Jun242008

Building ABCDump

I spent ages trying to get abcdump to build, and I finally figured it out! Doh, it only works with Tamarin-Central and not tamarin-tracing. Without further adieu, the steps to get abcdump to work on OS X:

1) Get Tamarin-Central, and build it with the release

cd tamarin-central
xcodebuild -configuration Release -project platform/mac/shell/shell.xcodeproj
2) Get ASC
$ svn co http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/modules/asc <local-directory>
$ cd asc/build/java
$ ant
...
jar:
[jar] Building jar asc\lib\asc.jar
$ java -jar asc.jar
# shows usage
3) put asc.jar in Tamarin-Central/utils/asc.jar
4) Build ByteArray.as
cd Tamarin-Central/shell
java -jar ../utils/asc.jar -import ../core/Builtin.abc ByteArray.as
5) Build abcdump
cd Tamarin-CEntral/utils
java -jar asc.jar -exe ../platform/mac/shell/build/Release/shell -import ../core/Builtin.abc -import ../shell/ByteArray.abc abcdump.as

abcdump.abc, 28715 bytes written
abcdump.exe, 1504179 bytes written

6) chmod +x abcdump.exe
7) ./abcdump.exe /path/To/yourScript.abc
8) ????
9) Profit!

For some reason, if I copy the abcdump.exe to /usr/bin, it won't execute :( But other than that it works.

PrintView Printer Friendly Version

EmailEmail Article to Friend

References (1)

References allow you to track sources for this article, as well as articles that were written in response to this article.

Reader Comments (4)

We should be able to get abcdump to work on tamarin-tracing. Some of the shell apis are different. (for example ByteArray). Conditional compilation in asc could sort out the differences.

June 30, 2008 | Unregistered CommenterDan Schaffer

I just fixed abcdump in TT

July 9, 2008 | Unregistered Commenteredwsmith

Bug in ABCdump?!

In my SWF there is a flash variable with strings and doubles. In the dumpfile there are just the strings and not the doubles: they are told to be 0 (zero), what is not correct!

I’m quite sure that the bug is in class MethodInfo, function dump, then "case OP_pushdouble:"

If you could help me to find the bug and maybe fix it I would be very happy and appreciate it !!!

Thanks for any help!!
Joe

Some lines of the dump:

42 pushstring "Publikumsfonds"
45 pushdouble 0
48 pushdouble 0
51 pushdouble 0
54 newarray [5]
56 pushdouble 0
59 pushstring "AMK"
62 pushdouble 0
65 pushdouble 0
68 pushdouble 0
71 newarray [5]
73 pushdouble 0
76 pushstring "Aktienfonds"
79 pushdouble 0
82 pushdouble 0

May 26, 2009 | Unregistered Commenterpfleiderer

Sorry, ABCdump is working fine!

Seems that the bug is in Xcelsius, a tool from Business Objects (SAP).

May 27, 2009 | Unregistered Commenterpfleiderer

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>