How to convert Dalvik Bytecode to LLVM IR?

1k views Asked by At

I want to convert Dalvik bytecode to LLVM IR. I know google's ART can convert dalvik bytecode to oat file via dex2oat. Dex2oat is based on LLVM, and I only want to convert the dex to LLVM IR rather than oat.

So, could you show me the front end used in dex2oat? Or could you tell me any front end that can translate dalvik bytecode to LLVM IR? Any suggestion is really appreciated!! Thanks a lot!

1

There are 1 answers

0
Alan Green On BEST ANSWER

The source for dex2oat is available on googlesrc.com. If you download the git repo, you can see that the Android Runtime doesn't use LLVM at all, so you won't be able to use dex2oat to generate IR code from Dalvik.

This Quora Answer indicates that LLVM support was removed in 2014.