Enabling JIT compiler on Android 2.1 for Odroid
References:
http://www.uglyn.com:8080/showItem/showDetail/9007534.html
http://androidforums.com/droid-all-things-root/51027-how-enable-jit.html
http://github.com/CyanogenMod/android_bionic/tree/froyo/linker
Descriptions:
Start from ODROID source code (hk_eclair_2.1_r2.tar.gz).
Make buildspec.mk and build as the following.
Copy following files to PC (or adb connected computer)
On PC,
Edit build.prop
Add the following line into the last line in build.prop.
Save
You can see "with_jit" option in last part of displayed.
Reboot
Test Result:
I tested with "linpack for android".
On JIT disabled ODROID, it got about 15secs.
On JIT enabled ODROID, it got about 10secs.
The result says that JIT enabled odroid runs 50% faster.
To turn off JIT:
change build.prop to
References:
http://www.uglyn.com:8080/showItem/showDetail/9007534.html
http://androidforums.com/droid-all-things-root/51027-how-enable-jit.html
http://github.com/CyanogenMod/android_bionic/tree/froyo/linker
Descriptions:
Start from ODROID source code (hk_eclair_2.1_r2.tar.gz).
Make buildspec.mk and build as the following.
- Code:
$ cd hk_eclair_2.1_r2
$ echo "WITH_JIT:=true" > buildspec.mk
$ hkdkc100_build.sh
Copy following files to PC (or adb connected computer)
- Code:
./out/target/product/hkdkc100/system/bin/dalvikvm
./out/target/product/hkdkc100/system/lib/libdvm.so
./out/target/product/hkdkc100/system/lib/libnativeheler.so
On PC,
- Code:
> adb pull /system/build.prop build.prop
Edit build.prop
Add the following line into the last line in build.prop.
- Code:
dalvik.vm.execution-mode=int:jit
Save
- Code:
> adb push build.prop /system/build.prop
> adb push dalvikvm /system/bin/dalvikvm
> adb push libdvm.so /system/lib/libdvm.so
> adb push libnativeheler.so /system/lib/libnativeheler.so
> adb shell chmod 755 /system/bin/dalvikvm
> adb shell dalvikvm -h
You can see "with_jit" option in last part of displayed.
Reboot
Test Result:
I tested with "linpack for android".
On JIT disabled ODROID, it got about 15secs.
On JIT enabled ODROID, it got about 10secs.
The result says that JIT enabled odroid runs 50% faster.
To turn off JIT:
change build.prop to
- Code:
dalvik.vm.execution-mode=int:fast





ODROID-JIT.zip
» Memory, final code and final video (in Spanish)
» ODROID-A4 IO Board
» odroid linux kernel config file "hkdk_rtm20_defconfig " missed
» odroid-7 source code
» Application source code for Embedded Android Platform based on ODROID-A4
» What is ODROID-BaB project LSED?
» CPU Module S5PV310 and K3PE7E700B
» BF040-I50B_N09 Board to Board Connector
» CPU Module Schematics
» A stupid question : How can I root the ODROID-A
» ODROID-PC Ubuntu 12.04 with HDMI
» ODROID-A4 IO Board - Oscilloscope
» OPEN RFID Tag
» About the recovery tool for Odroid-pc