title: Android run Dalvik bytecode like inline assembly in C++
body: <p>I'm curious if it's possible to run bytecode in Java for Android similar to how you can use inline-assembly in <a href="/questions/tagged/c%2b%2b" class="post-tag" title="show questions tagged &#39;c++&#39;" rel="tag">c++</a>.  In C++, I can run assembly and use its result in the program.</p>
  
  <p>I don't want to inject bytecode during runtime but before actual compilation of apk.</p>
  
  <pre><code>// example of MSVC-syntax inline-asm syntax; not actually doing anything useful.
  __asm { 
         mov bl, 2
         sub bl, 0
         div  bl 
         add   ax, 0
   }
  </code></pre>