[fpc-pascal] PPCJVM Android JVM target technical questions

Jonas Maebe jonas at freepascal.org
Fri Jul 26 19:54:01 CEST 2019


On 2019-07-26 19:24, Mgr. Janusz Chmiel wrote:
> Because my apps will be longer and longer, I have some special
> technical question to you.
> How many lines can PPCJVM compile while using one source file without 
> units?

I don't think there is a limit. There is only a limit per 
function/procedure/method: they cannot contain more than 64KB of java 
bytecode. I don't know exactly to how many lines of source code this 
corresponds (it probably depends on what the source code does, as some 
source code results in longer java byte code than other).

> How many values can be processed by using Case block?
> For example max 200 or similar value?

Same answer as above.

> How to manage memory while using JVM Android target? Which commands or
> strategies can I use to minimize RAM overload?
> If I will type
> r='';
> Will it deallocate allocated bytes for previously used value of string 
> variable?

After that statement has executed, the memory will be deallocated the 
next time the garbage collector runs.


Jonas


More information about the fpc-pascal mailing list