5

I am tracing the Dalvik machine source code. According that, I want to make Dalvik runnable. I have seem the dvk project. But there has many problem result in fault. Are there have any way to make dalvik only without all android. Because make android will take too much time (about many hour)

dvk project: http://code.google.com/p/dvk/

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
  • 1
    Possible duplicate of [How can I compile Dalvik to run it locally on Linux?](http://stackoverflow.com/questions/3542268/how-can-i-compile-dalvik-to-run-it-locally-on-linux) – Paul Roub Apr 17 '17 at 21:27

2 Answers2

5

if you build the lunch "sim-eng", you get a dalvikvm built for just the host (i.e. the Linux box you're building on). this already runs with glibc rather than bionic.

if you want to build for a device, and just want a quicker build, you don't need to rebuild everything; "mmm dalvik snod" should be sufficient. (though if you haven't changed anything in dalvik/libcore/, just making changes to the VM shouldn't rebuild much anyway, even if you do a full top-level "make".)

and don't forget to use "make -j" to get some parallelism into your build!

Elliott Hughes
  • 4,595
  • 2
  • 23
  • 21
  • The `mmm' command works great for me. I'm wondering how I can get to know such commands. – dacongy Jan 02 '12 at 01:19
  • I'm not on VPN at the moment, but iirc "make help" is useful. You might also want to just wade through the build/envsetup.sh stuff. Personally, though, I don't use much beyond "make" for a full build and "mmm dalvik libcore snod" when I've only touched dalvik or libcore. There are "m" and "mm" too, but I can never remember what they do! – Elliott Hughes Jan 22 '12 at 22:52
  • I can't find "sim-eng" target in android branch I've synced. Could you provide branch name with "sim-eng" target? – Wojciech Reszelewski May 25 '15 at 09:23
0

This GitHub project has a pre-compiled binary of Dalvik VM for Linux, ready to use! Check the associated blog post for information about how the binary was compiled and how to use it.

Flight Odyssey
  • 2,267
  • 18
  • 25