[fpc-devel] FPC-JVM: Status report on Android

Michael Schnell mschnell at lumino.de
Mon Aug 29 12:18:22 CEST 2011


On 08/29/2011 11:43 AM, Felipe Monteiro de Carvalho wrote:
> Sven is correct. I didn't know this until now, but all Android
> applications are first compiled using javac and then dex converts the
> bytecode. Usually you don't have to care about this, because the Java
> part is provided in source code and native code is compiled
> differently, but in any Android standard build log you will see:
>
> compile:
>      [javac] Compiling 1 source file to
> /home/felipe/Programas/lazarus-ccr/examples/androidlcl/android/bin/classes
>
> -dex:
>       [echo] Converting compiled files and external libraries into
> /home/felipe/Programas/lazarus-ccr/examples/androidlcl/android/bin/classes.dex...
Thus the "dex-converter" seems to include a kind of optimizer that 
allows for holding some very frequently used variables in registers 
instead of on the stack for a relevant code sequence.

Nice :)

-Michael



More information about the fpc-devel mailing list