Re: [fpc-pascal] "Hello world" syscalls

2020-01-09 Thread Andreas Schneider
Am 2020-01-09 00:30, schrieb Graeme Geldenhuys: So the resulting Java.class is 16 MByte in size!!! How? No it's not. I quote: The size of all files which must be present at runtime (interpreters, stdlib, libraries, loader, etc) are included. So 16mb is pretty generous. I wouldn't immediatel

Re: [fpc-pascal] "Hello world" syscalls

2020-01-08 Thread Vincent Snijders via fpc-pascal
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 comparis

Re: [fpc-pascal] "Hello world" syscalls

2020-01-08 Thread Graeme Geldenhuys
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 To

Re: [fpc-pascal] "Hello world" syscalls

2020-01-07 Thread Marco van de Voort
Op 2020-01-07 om 14:29 schreef James Richters: How can 0% + 0%+ 0%+ 0%+ 0%+ 0% = 100% ? looks like it just prints 100% all the time and doesn't really add any total. All those zeros seem strange unless your computer is so fast that every call takes so much less than a microsecond that I can't

Re: [fpc-pascal] "Hello world" syscalls

2020-01-07 Thread Marco van de Voort
Op 2020-01-07 om 02:28 schreef Vojtěch Čihák via fpc-pascal: I found this article: https://drewdevault.com/2020/01/04/Slow.html but FPC is missing, so Iwrote simple: program Project1; begin   writeln('Hello world!'); end. $ fpc -O3 -XX Project1.pas Add -Xm and look at the generated map f

Re: [fpc-pascal] "Hello world" syscalls

2020-01-07 Thread James Richters
al Message- From: fpc-pascal On Behalf Of Michael Van Canneyt Sent: Monday, January 6, 2020 11:44 PM To: Vojtěch Čihák via fpc-pascal Subject: Re: [fpc-pascal] "Hello world" syscalls On Tue, 7 Jan 2020, Vojtěch Čihák via fpc-pascal wrote: > Hi, >   > I found this article: ht

Re: [fpc-pascal] "Hello world" syscalls

2020-01-06 Thread Michael Van Canneyt
On Tue, 7 Jan 2020, Vojtěch Čihák via fpc-pascal wrote: Hi,   I found this article: https://drewdevault.com/2020/01/04/Slow.html but FPC is missing, so I wrote simple:   program Project1; begin   writeln('Hello world!'); end.    $ fpc -O3 -XX Project1.pas   $ strace -C ./Project1   % time     

[fpc-pascal] "Hello world" syscalls

2020-01-06 Thread Vojtěch Čihák via fpc-pascal
Hi,   I found this article: https://drewdevault.com/2020/01/04/Slow.html but FPC is missing, so I wrote simple:   program Project1; begin   writeln('Hello world!'); end.    $ fpc -O3 -XX Project1.pas   $ strace -C ./Project1   % time     seconds  usecs/call     calls    errors syscall -- -

Re: [fpc-pascal] hello world

2016-05-05 Thread Tomas Hajny
On Thu, May 5, 2016 15:34, Mark Morgan Lloyd wrote: > Tomas Hajny wrote: >> On Thu, May 5, 2016 11:38, M Pulis wrote: > >>> why won't this compile? It is the only open file and is saved, looks >>> like a main program to me. > >>> No main program found in open files. Can not build. >> >> I assume th

Re: [fpc-pascal] hello world

2016-05-05 Thread Mark Morgan Lloyd
Tomas Hajny wrote: On Thu, May 5, 2016 11:38, M Pulis wrote: why won't this compile? It is the only open file and is saved, looks like a main program to me. No main program found in open files. Can not build. I assume that this is a message reported by some IDE tool. Which one (what's the

Re: [fpc-pascal] hello world

2016-05-05 Thread Tomas Hajny
On Thu, May 5, 2016 11:38, M Pulis wrote: Hello, > Folks: > > Apologies for the beginner nature of this query... > > why won't this compile? It is the only open file and is saved, looks > like a main program to me. . . > getting: > > No main program found in open files. Can not build. I assum

Re: [fpc-pascal] hello world

2016-05-05 Thread Graeme Geldenhuys
On 2016-05-05 10:38, M Pulis wrote: > No main program found in open files. Can not build. Same as what Mark said. Give more information and paste exact compilation or runtime error. Under FreeBSD with FPC 3.0.0 === [tmp]$ fpc hello.pas Hint: End of rea

Re: [fpc-pascal] hello world

2016-05-05 Thread Mark Morgan Lloyd
M Pulis wrote: Folks: Apologies for the beginner nature of this query... why won't this compile? It is the only open file and is saved, looks like a main program to me. program Hello; begin writeln ('Hello, world.'); readln end. getting: No main program found in open files. Can not b

[fpc-pascal] hello world

2016-05-05 Thread M Pulis
Folks: Apologies for the beginner nature of this query... why won't this compile? It is the only open file and is saved, looks like a main program to me. program Hello; begin writeln ('Hello, world.'); readln end. getting: No main program found in open files. Can not build. thanks!

Re: Re: [fpc-pascal] Hello World for Darwin ?

2008-12-15 Thread leledumbo
> I suspect cross compiling not functional. Then it's a surprise I can compile for Linux from my Win32 machine, just don't forget the i386-linux-ld. Don't expect you have cross compiling capability out of the box. Some tools and libraries might be needed depending on your needs. -- View this me

[fpc-pascal] Hello World for Darwin ?

2008-12-15 Thread Skybuck Flying
Hello, 1. I start fp 2. I open file: program HelloWorldv2; {$mode delphi} begin writeln('Hello Free Pascal World !'); readln; end. 3. I tried to compile/build to "Darwin i386". 4. Error/compile screen says: Main file: Y:\..\helloworld\helloworldv2.pas Failed to compile...