Op do 9 jan. 2020 om 00:47 schreef Graeme Geldenhuys <
mailingli...@geldenhuys.co.uk>:

> On 07/01/2020 1:28 am, Vojtěch Čihák via fpc-pascal wrote:
> > I found this article: https://drewdevault.com/2020/01/04/Slow.html
> > but FPC is missing, so I wrote simple:
>
> On a side note, and for comparison... According to that website, he/she
> tested Java and got the following:
>
> Lang   Exec time   Total syscalls  Unique syscalls Size (KiB)
> Java   0.07s real   226            26              15743KiB
>
> So the resulting Java.class is 16 MByte in size!!! How?
>
> I did the same on my system here with the latest OpenJDK 8 & 11.0.5. The
> resulting size of the class file was identical with Java 8 & 11 and was
> as follows:
>
> $ javac Test.java
>
> $ ls -l Test*
> -rw-rw-r-- 1 graemeg graemeg 413 Jan  8 22:54 Test.class
> -rw-rw-r-- 1 graemeg graemeg 115 Jan  8 22:53 Test.java
>
>
> My resulting class file is only 413 bytes. So how does that website
> owner get 16 MByte?
>
>
Did you create a static program? Otherwise you must include the dynamic
libraries it uses.

Vincent
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to