[fpc-pascal] "Hello world" syscalls

Vincent Snijders vincent.snijders at gmail.com
Thu Jan 9 07:26:25 CET 2020


Op do 9 jan. 2020 om 00:47 schreef Graeme Geldenhuys <
mailinglists at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200109/e1011682/attachment.html>


More information about the fpc-pascal mailing list