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

Sven Barth pascaldragon at googlemail.com
Fri Sep 2 16:20:53 CEST 2011


Am 02.09.2011 12:30, schrieb Sven Barth:
>>> When using ppcjvm I compile using "-n" and when I compile the Java RTL
>>> using make I also need to pass "-XP " in OPT.
>>
>> Strange:
>>
>> ~/fpcjvm/rtl/java$ make FPC=ppcjvm2 OPT="-n -O2 -al" clean all
>> /bin/rm -f ../../rtl/units/jvm-java/system.ppu
>> ../../rtl/units/jvm-java/uuchar.ppu ../../rtl/units/jvm-java/objpas.ppu
>> ../../rtl/units/jvm-java/jdk15.ppu
>> /bin/rm -f fpcmade.jvm-java Package.fpc ppas.sh script.res link.res
>> /bin/rm -f *.s *_ppas.bat
>> ppcjvm2 @rtl.cfg -Tjava -Pjvm -Fi../inc -Fi../jvm -FE.
>> -FU../../rtl/units/jvm-java -n -O2 -al -djvm -Us -Sg system.pp
>> Generated:
>> ../../rtl/units/jvm-java/org/freepascal/rtl/$system$$_fpc_nestedvars$4864.class
>>
>>
>> Generated: ../../rtl/units/jvm-java/org/freepascal/rtl/system.class
>
> I'll check what I get as output by make and report that.

I just tried to reproduce that at work on Windows, but I encountered an 
error when compiling the RTL. The problematic part are the dependencies 
of "uuchar".
The problem is that Win32 does not define the SYSTEMUNIT variable (and 
SYSTEMPPU is defined using "system" instead of "SYSTEMUNIT"). This 
applies to WinCE and maybe other RTLs as well (not Win64 though ^^).

Regards,
Sven



More information about the fpc-devel mailing list