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
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel