Find Jobs
Hire Freelancers

How to instrument Android Dalvik compiler?

$250-750 USD

Ditutup
Dibuat lebih dari 7 tahun yang lalu

$250-750 USD

Dibayar ketika dikirim
I need to instrument Android 4.3 Dalvik compiler for some purposes. What is the goal? The goal is to calculate the elapsed execution time used by assignment statements in the Android Dalvik VM code. What did I do so far? I insert the following code between assignment statement(s) in the Android Dalvik VM source code: start = get_time() <assignment statements> end = end_time() elapsed_time = end-start Why the above code does not work? The above code does not work for the following reasons: 1-The get_time() function, more specifically gettimeofday() or clock_gettime(), has higher resolution than the assignment statement and hence gives negative values. 2-To solve the negative values above, I end up using a for-loop to loop 1 billion times for each code that has assignment statements. However, the Android code becomes extremely slow and does not work. What do I need to do to solve the problem? I need to instrument the Dalvik compiler to identify the assignment instructions and calculate/estimate their execution times at the compile-time (not at run-time). Does anyone know how to do that?
ID Proyek: 11368976

Tentang proyek

Proyek remot
Aktif 8 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan

Tentang klien

Bendera UNITED STATES
San Bernardino, United States
0,0
0
Anggota sejak Mei 1, 2016

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.