dalvik - What is Smali Code Android -
i going learn little bit dalvik vm, dex , smali.
i have read smali, still cannot understand place in chain of compilers. , purpose.
here questions:
- as know, dalvik other virtual machines run bytecode, in case of android dex byte code.
- what smali? android os or dalvik vm work directly, or same dex bytecode more readable human?
- is dissasembler windows (like ollydbg) program executable consist of different machines code (d3 , 5f example) , there appropriate assembly command each machine code, dalvik vm software, smali readable representation of bytecodes
- there new art enviroment. still use bytecodes or executes directly native code?
thank in advance.
when create application code, apk file contains .dex file, contains binary dalvik bytecode. format platform understands. however, it's not easy read or modify binary code, there tools out there convert , human readable representation. common human readable format known smali. same dissembler mentioned.
for example, have java code like
int x = 42
assuming first variable, dex code method contain hexadecimal sequence
13 00 2a 00
if run baksmali on it, you'd text file containing line
const/16 v0, 42
which lot more readable binary code. platform doesn't know smali, it's tool make easier work bytecode.
dalvik , art both take .dex files containing dalvik bytecode. it's transparent application developer, difference happens behind scenes when application installed , run.
Comments
Post a Comment