Re: [android-developers] Re: runtime compilation of dalvik bytecode
On Thu, Sep 27, 2012 at 6:40 PM, Ross Bamford <roscopeco@gmail.com> wrote:
> On Thursday, 27 September 2012 18:38:56 UTC+1, Mark Murphy (a Commons Guy)
> wrote:
>
>> On Tue, Sep 25, 2012 at 9:22 PM, Ross Bamford <rosc...@gmail.com> wrote:
>> > Recently, I've been working on a native (i.e. DEX) compiler for
>> > it.
>>
>> Are you using Dexmaker for this?
>>
>> http://code.google.com/p/dexmaker/
>>
>
> Yes, all the code generation is actually done through Dexmaker. The way it
> actually works is I wrap a Dexmaker Code object in a proxy which just
> records the method calls, and then does the generation at the end of the
> compilation by calling the appropriate methods on the Code object. This way,
> I can easily change things as the compilation progresses. It also allows me
> to pool locals, to be reused when they've gone out of scope (e.g. when
> they're just used temporarily to store some intermediate result, or as a
> method argument).
>
> If you're interested, the code for this proxy can be found at
> https://code.google.com/p/deelang/source/browse/branches/DEXCOMPILER/deelang/src/com/roscopeco/deelang/compiler/dex/CodeProxy.java
>
> Regards,
> Ross
Ah, apologies, I missed this on a cursory glance at the compiler ..
kris
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home