<div dir="ltr">On Mon, Sep 2, 2013 at 7:23 PM, Tyler Hardin <span dir="ltr"><<a href="mailto:tghardin1@catamount.wcu.edu" target="_blank">tghardin1@catamount.wcu.edu</a>></span> wrote:<br><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p dir="ltr">Hi all, does anyone here know if Google has considered trading out the Dalvik VM for LLVM?</p>


<p dir="ltr">What specifically I have in mind is that apps could be compiled to LLVM IR and distributed (after optimization) in that form, and then compiled to machine code on the Android machine itself. This would leave only ISA optimizations to the Android machine.</p>



<p dir="ltr">It would seem, from my limited perspective, that statically compiling packages containing LLVM IR would be superior to JITing Dalvik code every time an application is ran.</p>
<p dir="ltr">In addition to all code only having to be compiled once, when compiling statically, there is usually less rush and thus more time for computationally intensive optimizations.</p>
<p dir="ltr">What is the list's opinion on this?</p></blockquote><div>Please try to ask specific questions; vague/hypothetical questions aren't going to lead to useful discussion.</div><div><br></div><div>In answer to the question "can apps be compiled to LLVM IR and distributed in that form", it's workable in restricted environments; try searching the web for "Portable Native Client".</div>

<div><br></div><div>-Eli </div></div></div></div>