~/talk

Understanding the Kotlin to Dalvik bytecode translation

links:none on file
slides:none on file

Kotlin/Java compiles to class files, D8 produces .dex, and ART may interpret, JIT or AOT compile — and concrete surprises happen: an overloaded method invoked by reflection throws NoClassDefFoundError because reflection lookup loads a missing API-level class after minification renamed overloads; an intermittent crash traces to dex2o doing an incorrect boolean optimization across branches — dex->o boolean optimization bug; practical steps: inspect the R8/ProGuard mapping, decompile the APK with JEX and inspect DEX contents, run with interpret-only or enable JIT/AOT logging to isolate compilation-stage faults.

AI-written summary · about

  1. 0:00Kotlin bytecode translation
  2. 1:25Speaker background
  3. 2:08Source to machine code steps
  4. 6:09Source to Java bytecode
  5. 9:05Java to DEX bytecode
  6. 13:20Minification and DEX tools
  7. 20:07Bytecode features not in source
  8. 24:46DEX to machine code modes
  9. 29:20Debugging DEX-to-OAT bug
  10. 32:15Translation layers summary
  11. 35:01Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.