idea for student project: emitting Android .dex classfiles directly
373 views
Skip to first unread message
Miguel Garcia
unread,
Apr 3, 2012, 3:26:08 PM4/3/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala-i...@googlegroups.com
Scala developers targeting Android must bear with an extra build step (jar to dex conversion), given that there's no dedicated backend to replace GenJVM (to directly translate ICode [1] into dex files).
Two recent developments can simplify the construction of an Android-backend:
(a) ASMDEX [2] an ASM-based bytecode manipulation framework for DEX bytecode.
(b) an ASM-based version of GenJVM [3], in connection with the extensive ASM documentation (user guide [4] and developer docs [5]).
That's the idea. Disclaimer: I'm in no way an expert in Android development. I just got this idea after contributing to both the GenJVM and GenMSIL Scala backends :)
Quoting from the Abstract: "We generalize the Dalvik instruction set and formalize it using operational semantics based on the Dalvik documentation, inspection of the Dalvik VM source code, and manual testing."