Re: [fpc-pascal] What's in Hello World

2024-01-11 Thread DougC via fpc-pascal
Ah, yes! The Hello World Machine. Doug C. On Thu, 11 Jan 2024 14:34:29 -0500 Adriaan van Os via fpc-pascal wrote --- Nikolay Nikolov via fpc-pascal wrote: > But that increases the binary size to 28 bytes. We can put a 'ret' That's still 27 bytes too mu

Re: [fpc-pascal] What's in Hello World

2024-01-11 Thread Adriaan van Os via fpc-pascal
Nikolay Nikolov via fpc-pascal wrote: But that increases the binary size to 28 bytes. We can put a 'ret' That's still 27 bytes too much. Let's design a CPU that has "Hello World" as a one-byte instruction, implement that CPU in a Field-programmable gate array,

Re: [fpc-pascal] What's in Hello World

2024-01-11 Thread Nikolay Nikolov via fpc-pascal
On 1/7/24 14:21, Ingemar Ragnemalm via fpc-pascal wrote: Just for comparison, I fired up Think Pascal and made Hello world! Plain Hello world, closes so quickly that you don't have time to see it: 4625 bytes. Including ShowText and while not Button do; 4639 bytes. Yes, less th

Re: [fpc-pascal] What's in Hello World

2024-01-08 Thread Marco van de Voort via fpc-pascal
Op 7-1-2024 om 16:09 schreef Travis Siegel via fpc-pascal: Not that it's 100 percent relevant, but I always use powerbasic (https://www.powerbasic.com) when it's a matter of size, I also never use powerbasic. ___ fpc-pascal maillist - fpc-pasca

Re: [fpc-pascal] What's in Hello World

2024-01-08 Thread Travis Siegel via fpc-pascal
On 1/7/2024 1:09 PM, Florian Klämpfl via fpc-pascal wrote: Am 07.01.2024 um 13:21 schrieb Ingemar Ragnemalm via fpc-pascal : Just for comparison, I fired up Think Pascal and made Hello world! Plain Hello world, closes so quickly that you don't have time to see it: 4625 bytes. Incl

Re: [fpc-pascal] What's in Hello World

2024-01-08 Thread Travis Siegel via fpc-pascal
For what it's worth, the hello world program in powerbasic (https://www.powerbasic.com) comes to a whooping 7,168 bytes. That's the console version, not the gui version, that's a bit bigger, but by not much more.  I have an epub reader I've been working on for a few years,

Re: [fpc-pascal] What's in Hello World

2024-01-08 Thread Jean SUZINEAU via fpc-pascal
Le 08/01/2024 à 13:51, Peter B via fpc-pascal a écrit :    or if not, is there another way to turn it on in the textmode IDE? No idea. Its easy enough if you compile from the command line. fpc -Os -XX hello.pas If stripping is not on by default, also use -Xs I guess that in the textmode IDE

Re: [fpc-pascal] What's in Hello World

2024-01-08 Thread Karoly Balogh via fpc-pascal
Hi, On Mon, 8 Jan 2024, Marco van de Voort via fpc-pascal wrote: > > Op 8-1-2024 om 14:03 schreef Karoly Balogh via fpc-pascal: > > No, it's not. But the Linker specific options are under Options -> > > Linker... There's a smartlinking related option there, but I'm not sure if > > it is what you

Re: [fpc-pascal] What's in Hello World

2024-01-08 Thread Marco van de Voort via fpc-pascal
Op 8-1-2024 om 14:03 schreef Karoly Balogh via fpc-pascal: No, it's not. But the Linker specific options are under Options -> Linker... There's a smartlinking related option there, but I'm not sure if it is what you need. :) That one is -XX, and the "create smartlinkable units" in the tab bef

Re: [fpc-pascal] What's in Hello World

2024-01-08 Thread code dz via fpc-pascal
I remember i made a simple win32 window app with custom tiny RTL , and final exe size was 4.5kb . On Sun, Jan 7, 2024, 20:33 Michael Van Canneyt via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > > On Sun, 7 Jan 2024, Sven Barth via fpc-pascal wrote: > > >>> > >>> - FPC compiled as is

Re: [fpc-pascal] What's in Hello World

2024-01-08 Thread Karoly Balogh via fpc-pascal
Hi, On Sun, 7 Jan 2024, James Richters via fpc-pascal wrote: > >Try building with smartlinking, -XX > > I never knew there was an option for smartlinking. I'm using the FPC text > IDE, I see various options like > Generate Smaller Code, and level 1, 2, and 3 optimizations, but I don't see > any

Re: [fpc-pascal] What's in Hello World

2024-01-08 Thread Peter B via fpc-pascal
On 07/01/2024 16:07, James Richters via fpc-pascal wrote: Try building with smartlinking, -XX I never knew there was an option for smartlinking. I'm using the FPC text IDE, I see various options like Generate Smaller Code, and level 1, 2, and 3 optimizations, but I don't see anything specifica

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Karoly Balogh via fpc-pascal
Hi, On Sun, 7 Jan 2024, Florian Klämpfl via fpc-pascal wrote: >> Am 07.01.2024 um 13:21 schrieb Ingemar Ragnemalm via fpc-pascal >> : >> >> Just for comparison, I fired up Think Pascal and made Hello world! >> >> Plain Hello world, closes so quickly that yo

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Karoly Balogh via fpc-pascal
Hi, On Sun, 7 Jan 2024, Michael Van Canneyt via fpc-pascal wrote: > > To underline this with some numbers (I assume you mean the > > demo/text/hello.pp which only contains a mere "Writeln('Hello World')" > > and no additional units; all tests on x86_64-lin

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Karoly Balogh via fpc-pascal
Hi, On Sun, 7 Jan 2024, Ingemar Ragnemalm via fpc-pascal wrote: > Just for comparison, I fired up Think Pascal and made Hello world! > > Plain Hello world, closes so quickly that you don't have time to see it: 4625 > bytes. > > Including ShowText and while not Button

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Rainer Stratmann via fpc-pascal
Am Sonntag, 7. Januar 2024, 14:09:24 CET schrieb Florian Klämpfl via fpc- pascal: > > Am 07.01.2024 um 13:21 schrieb Ingemar Ragnemalm via fpc-pascal > > : > > > > Just for comparison, I fired up Think Pascal and made Hello world! > > > > Plain Hello world, c

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Marco van de Voort via fpc-pascal
Op 7-1-2024 om 11:23 schreef Sven Barth via fpc-pascal: To underline this with some numbers (I assume you mean the demo/text/hello.pp which only contains a mere "Writeln('Hello World')" and no additional units; all tests on x86_64-linux with 3.3.1): - FPC compiled a

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Michael Van Canneyt via fpc-pascal
On Sun, 7 Jan 2024, Sven Barth via fpc-pascal wrote: - FPC compiled as is: 388976 B - FPC compiled with full smartlinking: 55920 B - FPC compiled with C linkage: 388760 B - FPC compiled with full smartlinking and C linkage: 56792 B Maybe it is a good idea to add these numbers to the above W

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread James Richters via fpc-pascal
>Try building with smartlinking, -XX I never knew there was an option for smartlinking. I'm using the FPC text IDE, I see various options like Generate Smaller Code, and level 1, 2, and 3 optimizations, but I don't see anything specifically called smartlinking. Is it the same as Generate Small

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Florian Klämpfl via fpc-pascal
> Am 07.01.2024 um 13:21 schrieb Ingemar Ragnemalm via fpc-pascal > : > > Just for comparison, I fired up Think Pascal and made Hello world! > > Plain Hello world, closes so quickly that you don't have time to see it: 4625 > bytes. > > Including ShowText and

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Sven Barth via fpc-pascal
Am 07.01.2024 um 11:39 schrieb Michael Van Canneyt via fpc-pascal: On Sun, 7 Jan 2024, Sven Barth via fpc-pascal wrote: Am 07.01.2024 um 10:01 schrieb Florian Klämpfl via fpc-pascal: Am 06.01.2024 um 20:05 schrieb Matthew Phillips via fpc-pascal : I compiled the Hello World program

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Jonas Maebe via fpc-pascal
On 07/01/2024 13:21, Ingemar Ragnemalm via fpc-pascal wrote: Just for comparison, I fired up Think Pascal and made Hello world! Plain Hello world, closes so quickly that you don't have time to see it: 4625 bytes. Including ShowText and while not Button do; 4639 bytes. Yes, less th

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Ingemar Ragnemalm via fpc-pascal
Just for comparison, I fired up Think Pascal and made Hello world! Plain Hello world, closes so quickly that you don't have time to see it: 4625 bytes. Including ShowText and while not Button do; 4639 bytes. Yes, less than 5k! Progress? /In

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Adriaan van Os via fpc-pascal
Peter B via fpc-pascal wrote: Try building with smartlinking, -XX I get 35k You can also experiment with ld linker options like --strip-all and --strip-debug or run the produced code through strip with various options (e.g. -u -r on OS

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Peter B via fpc-pascal
Try building with smartlinking, -XX I get 35k Thats with 3.2.2 on linux ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Michael Van Canneyt via fpc-pascal
On Sun, 7 Jan 2024, Sven Barth via fpc-pascal wrote: Am 07.01.2024 um 10:01 schrieb Florian Klämpfl via fpc-pascal: Am 06.01.2024 um 20:05 schrieb Matthew Phillips via fpc-pascal : I compiled the Hello World program from the docs and noticed that it's 435k. Compared to a lot of

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Sven Barth via fpc-pascal
Am 07.01.2024 um 10:01 schrieb Florian Klämpfl via fpc-pascal: Am 06.01.2024 um 20:05 schrieb Matthew Phillips via fpc-pascal : I compiled the Hello World program from the docs and noticed that it's 435k. Compared to a lot of newer languages, like Golang, that's not bad at al

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Peter B via fpc-pascal
On 06/01/2024 19:05, Matthew Phillips via fpc-pascal wrote: I compiled the Hello World program from the docs and noticed that it's 435k. Compared to a lot of newer languages, like Golang, that's not bad at all. I then compiled the equivalent C program with gcc which came out at 33k. S

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Florian Klämpfl via fpc-pascal
> Am 06.01.2024 um 20:05 schrieb Matthew Phillips via fpc-pascal > : > > I compiled the Hello World program from the docs and noticed that it's > 435k. Compared to a lot of newer languages, like Golang, that's not bad > at all. > > I then compiled the equiva

[fpc-pascal] What's in Hello World

2024-01-07 Thread Matthew Phillips via fpc-pascal
I compiled the Hello World program from the docs and noticed that it's 435k. Compared to a lot of newer languages, like Golang, that's not bad at all. I then compiled the equivalent C program with gcc which came out at 33k. So I'm just curious, where does the difference comes fr

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-09-03 Thread Peter via fpc-pascal
Sorry, my bad. I hadn't got Thunderbird configured right. All mail from this list just showed the list address in the 'From' field. Now fixed it.  Edit > Preferences > Advanced > "Show only display name for people in my address book" which was checked. Cheers, Pete ___

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-09-02 Thread geneb via fpc-pascal
On Thu, 2 Sep 2021, Peter via fpc-pascal wrote: https://castle-engine.io/modern_pascal_introduction.html You can also download it as a single PDF. g. Thanks Dennis. Very useful refresher! You're welcome! (My name is Gene. :D ) g. -- Proud owner of F-15C 80-0007 http://www.f15sim.com

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-09-02 Thread Peter via fpc-pascal
https://castle-engine.io/modern_pascal_introduction.html You can also download it as a single PDF. g. Thanks Dennis. Very useful refresher! Cheers, Pete ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-09-01 Thread James Richters via fpc-pascal
rite console programs with Lazarus, The advice to use Lazarus is good advice, you can write both Console and GUI applications with it. As far as the .o file not found, Try File > New > Project > Simple Program You can put something simple like: Writeln('Hello World'); Read

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread Ralf Quint via fpc-pascal
On 8/31/2021 10:40 AM, joseph turco via fpc-pascal wrote: I guess I should just use lazarus and learn the GUI Tools. Using Lazarus doesn't mean you HAVE TO write GUI programs. Just use it as an IDE. And by and large, any book/resource about Object Pascal/Delphi will do just fine to learn the

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread Travis Siegel via fpc-pascal
Although not likely in this case, I am visually impaired, use a screen reader, and find the Lazarius IDE nearly unusable.  Of course, I've not touched it in years, because my first attempt at using it failed miserably, so for me, I simply use notpad, pico, nano, or text edit (depending on what

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread joseph turco via fpc-pascal
fpc-pascal@lists.freepascal.org> wrote: > On Tue, Aug 31, 2021 at 12:23 PM Liam Proven via fpc-pascal > wrote: > > > I've got Lazarus running here and it's more of the same. But I > > discovered that I have `fpc` in the terminal and I had a "Hello worl

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread Bart via fpc-pascal
On Tue, Aug 31, 2021 at 12:23 PM Liam Proven via fpc-pascal wrote: > I've got Lazarus running here and it's more of the same. But I > discovered that I have `fpc` in the terminal and I had a "Hello world" > program running in 30 seconds there... something that

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread geneb via fpc-pascal
On Tue, 31 Aug 2021, Liam Proven via fpc-pascal wrote: For those of us who don't, though, docs that focus on doing that aren't much help. Agreed! I am only really interested in FPC for one thing -- targeting Ultibo, a bare-metal runtime for the Raspberry Pi. I'm interested in trying to emula

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread Liam Proven via fpc-pascal
On Tue, 31 Aug 2021 at 15:53, geneb wrote: > > Liam, I think you're mixing the language with the framework. > > I'll be the first person to agree with you that doing a gui application in > Delphi (and realistically, any RAD environment) can be intimidating if you > don't know that you're looking a

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread geneb via fpc-pascal
On Tue, 31 Aug 2021, Liam Proven via fpc-pascal wrote: Plain old FreePascal is approachable. Object Pascal is deeply intimidating, and I'm not sure it's worth the entry price. Liam, I think you're mixing the language with the framework. I'll be the first person to agree with you that doing a

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread Liam Proven via fpc-pascal
age, far more readable than C, and made it overcomplicated and obscure and complex and basically just too damned hard for me. I've got Lazarus running here and it's more of the same. But I discovered that I have `fpc` in the terminal and I had a "Hello world" program running

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread geneb via fpc-pascal
On Mon, 30 Aug 2021, wkitty42--- via fpc-pascal wrote: On 8/30/21 8:52 AM, geneb via fpc-pascal wrote: [*] For those not aware of him, Jeff Duntemann was a huge figure "back in the day" in Turbo/Borland Pascal circles.  His books are phenomenal. i have and still use several of his books...

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread wkitty42--- via fpc-pascal
On 8/30/21 8:52 AM, geneb via fpc-pascal wrote: [*] For those not aware of him, Jeff Duntemann was a huge figure "back in the day" in Turbo/Borland Pascal circles.  His books are phenomenal. i have and still use several of his books... i think the first one we got was "Complete Turbo Pascal" -

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread Thomas Young via fpc-pascal
> On Aug 27, 2021, at 4:01 PM, joseph turco via fpc-pascal > wrote: > > I am a new programmer, and I thought I'd learn Pascal. Good day Joseph, Pascal is the language I was taught in 1986. I’m still using it. First question to ask yourself is why and what do you need to program? For myself,

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread Jean SUZINEAU via fpc-pascal
I've forgotten to add the link to "Snap!" manual: https://snap.berkeley.edu/snap/help/SnapManual.pdf ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread Jean SUZINEAU via fpc-pascal
May be something like "Snap!" ? https://snap.berkeley.edu/snap/snap.html#present:Username=trev1315&ProjectName=plane%202&editMode&noRun https://snap.berkeley.edu/project?user=trev1315&project=plane%202 On my own, I think starting with Lazarus and GUI apps would be far easier. If you create a n

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread geneb via fpc-pascal
Here's a book that's aimed squarely at the non-programmer, and it's written for FreePascal http://www.copperwood.com/pub/FreePascalFromSquareOne.pdf It's written by Jeff Duntemann[*] and is a free download. Give it a look, while "unfinished" it will get you the knowledge you want. g. [*] Fo

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread Armin Linder via fpc-pascal
ecent concepts like objects (old and new style) and generics. Armin. Am 27.08.2021 um 22:01 schrieb joseph turco via fpc-pascal: Hello all, I am a new programmer, and I thought I'd learn Pascal. I saw that with FreePascal, most users are using Lazarus. I don't want to use this and wo

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread joseph turco via fpc-pascal
Thanks for the response. that book is aimed to experienced programmers. Not for me sadly. On Sun, Aug 29, 2021 at 12:43 PM geneb via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > On Sat, 28 Aug 2021, Dennis Lee Bieber via fpc-pascal wrote: > > > On Fri, 27 Aug 2021 16:01:38 -0400, joseph

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread Yann Mérignac via fpc-pascal
http://code.sd/startprog/ Le dim. 29 août 2021 à 18:43, geneb via fpc-pascal < fpc-pascal@lists.freepascal.org> a écrit : > On Sat, 28 Aug 2021, Dennis Lee Bieber via fpc-pascal wrote: > > > On Fri, 27 Aug 2021 16:01:38 -0400, joseph turco via fpc-pascal > > declaimed > > the following: > > > >>

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread geneb via fpc-pascal
On Sat, 28 Aug 2021, Dennis Lee Bieber via fpc-pascal wrote: On Fri, 27 Aug 2021 16:01:38 -0400, joseph turco via fpc-pascal declaimed the following: question is, id like to use the free pascal IDE, and learn the more modern(?) form of pascal, but i cannot find a resource for beginners that

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread Bart via fpc-pascal
On Sat, Aug 28, 2021 at 3:21 PM joseph turco via fpc-pascal wrote: > I am a new programmer, and I thought I'd learn Pascal. You're very welcome. > I saw that with FreePascal, most users are using Lazarus. I don't want to use > this and would rather work in the console, > and use the free pasca

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread Guillermo via fpc-pascal
Fri, 27 Aug 2021 16:01:38 -0400 joseph turco via fpc-pascal escribió: > Hello all, > > I am a new programmer, and I thought I'd learn Pascal. I saw that with > FreePascal, most users are using Lazarus. I don't want to use this and > would rather work in the console,

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread James Richters via fpc-pascal
also put something like a ReadLn; at the end of my program so I can see the results before it switches back to the IDE.. Although pushing ALT-F5 will also show you the output if you don’t have the ReadLn; {$Mode TP} Uses CRT; Begin ClrScr; WriteLn('Hello World'); ReadLn; En

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread Michael Van Canneyt via fpc-pascal
On Fri, 27 Aug 2021, joseph turco via fpc-pascal wrote: Hello all, I am a new programmer, and I thought I'd learn Pascal. I saw that with FreePascal, most users are using Lazarus. I don't want to use this and would rather work in the console, and use the free pascal IDE. I&#x

[fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-28 Thread joseph turco via fpc-pascal
Hello all, I am a new programmer, and I thought I'd learn Pascal. I saw that with FreePascal, most users are using Lazarus. I don't want to use this and would rather work in the console, and use the free pascal IDE. I'm not really interested in using any GUI tools. I was looking

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 gen

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 ./Project

[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    erro

Re: [fpc-pascal] Hello, I suggest that you change the TFPGMap in fgl.

2016-07-19 Thread Felipe Monteiro de Carvalho
Hello, You could always send a patch with a TFPGHashedMap or TFPGRedBlackMap implementation. thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

Re: [fpc-pascal] Hello, I suggest that you change the TFPGMap in fgl.

2016-07-17 Thread leledumbo
aving array backed map, the convenience of map data structure is still achieved, it's just the speed that matters. Use fcl-stl instead, it has gmap which is rbtree backed and ghashmap which is hashtable backed. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.c

[fpc-pascal] Hello,I suggest that you change the TFPGMap in fgl.

2016-07-17 Thread 김봄
if TFPGMap::Sorted is True, then Add method time complexity is O(n) and Indexof,Find method is O(lg n). or Sorted is False, then Add method is O(1) and Indexof,Find is O(n) but, most language's map implementation is red/black tree or hashtable. i don't know why free pascal's map is based on arra

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

Re: [fpc-pascal] hello world

2016-05-05 Thread Graeme Geldenhuys
of reading config file /home/graemeg/.fpc.cfg Free Pascal Compiler version 3.0.0 [2015/11/16] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: FreeBSD for x86-64 Compiling hello.pas Linking hello 6 lines compiled, 0.1 sec 1 hint(s) issued [tmp]$ ./hello Hello wo

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

[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

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: /But/ I've got a vague recollection that somebody else had problems running on some router or other, which is one of the reasons why I fired things up at the end of last year and did some careful builds. I can't remem

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: /But/ I've got a vague recollection that somebody else had problems running on some router or other, which is one of the reasons why I fired things up at the end of last year and did some careful builds. I can't remember exactly where that one

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
b 3420485397 68988 ./test-mips-msb $ ./test-mips-msb Hello, World! $ cat /proc/cpuinfo system type : MIPS Malta processor : 0 cpu model : MIPS 24Kc V0.0 FPU V0.0 BogoMIPS: 78.08 wait instruction: yes microsecond timers : yes tlb_

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Michael Schnell
On 06/13/2013 02:17 PM, Dennis Poon wrote: I tested the mipseb helloworld provided by Mark (Thanks again) but the result is the same as my own helloworld, on running, the whole shell just froze. did you try to test a "heloworld" done in C, using the cross toolchain you use ? -Michael

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Dennis Poon
on my MIPS hardware. I need to know at this stage whether a FPC produced program compiled for MIPS (big endian) can actually run on my hardware. If that result is negative, I shall need a totally different approach. I've just checked and I have big- and little-endian "Hello, World!

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
(big endian) can actually run on my hardware. If that result is negative, I shall need a totally different approach. I've just checked and I have big- and little-endian "Hello, World!" programs natively-compiled that run on Debian Linux on Qemu. I can send either or both if it

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: /But/ I've got a vague recollection that somebody else had problems running on some router or other, which is one of the reasons why I fired things up at the end of last year and did some careful builds. I can't remember exactly where that one got to- I suggest that yo

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Felipe Monteiro de Carvalho
On Thu, Jun 13, 2013 at 4:01 AM, Dennis Poon wrote: > Mark, > Yes, please kindly send both test executables to me. Dennis, did you try running the compiler itself as previously explained? The compiler is a MIPS executable compiled with Free Pascal. You can run it in the command line just to see

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Michael Schnell
On 06/12/2013 05:29 PM, Dennis Poon wrote: My MIPS hardware is too slow to run a compiler. Is the project to be compiled so big, that it will take hours to compile ? -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.f

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-12 Thread Dennis Poon
shall need a totally different approach. I've just checked and I have big- and little-endian "Hello, World!" programs natively-compiled that run on Debian Linux on Qemu. I can send either or both if it would help, but I'd caution that they date back to around Xmas last year

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-12 Thread Mark Morgan Lloyd
run on my hardware. If that result is negative, I shall need a totally different approach. I've just checked and I have big- and little-endian "Hello, World!" programs natively-compiled that run on Debian Linux on Qemu. I can send either or both if it would help, but I'd ca

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-12 Thread OBones
Hello, Can't you just run that exe with the -h flag? Should run fast enough. Dennis Poon wrote: But Pierre, that looks more like a native MIPS compiler. My MIPS hardware is too slow to run a compiler. I need a cross compiler. If you have MIPS hardware, can you compile and send me a s

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-12 Thread Dennis Poon
But Pierre, that looks more like a native MIPS compiler. My MIPS hardware is too slow to run a compiler. I need a cross compiler. If you have MIPS hardware, can you compile and send me a simple MIPS big endian "hello world" binary executable? I want to test run it on my MIPS hardwar

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-12 Thread Michael Ring
I am confused, in all of your other mail till now you were talking about littleendian and now you talk about big endian, which one is right? A little endian binary will never ever run on a big endian system and your crosscompiler will need to also be configured && build with the correct endian

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-12 Thread Dennis Poon
I originally asked questions on big endian but so far people, and the MIPS_port doc, just reply me about litte endian . I had no choice but to modify their advice into big endian myself. I do understand big and little do mix. Dennis I am confused, in all of your other mail till now you were t

RE: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-12 Thread Pierre Free Pascal
Poon > Envoyé : mercredi 12 juin 2013 14:01 > À : FPC-Pascal users discussions > Objet : [fpc-pascal] can someone please email me a zipped hello world binary > program MIPS big endian for testing on my MIPS hardware? > > Since I have spent days but still cannot produce a helloworld

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-12 Thread Sven Barth
Am 12.06.2013 14:00, schrieb Dennis Poon: Since I have spent days but still cannot produce a helloworld binary for MIPS big endian, I need someone to to produce that for me so I can test it on my MIPS hardware. I need to know at this stage whether a FPC produced program compiled for MIPS (big

[fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-12 Thread Dennis Poon
Since I have spent days but still cannot produce a helloworld binary for MIPS big endian, I need someone to to produce that for me so I can test it on my MIPS hardware. I need to know at this stage whether a FPC produced program compiled for MIPS (big endian) can actually run on my hardware. I

Re: [fpc-pascal] fpweb fastcgi hello world example?

2011-07-27 Thread Joseph Montanez
startup file. On Wed, Jul 27, 2011 at 1:58 AM, wrote: > > > On Wed, 27 Jul 2011, Joseph Montanez wrote: > >> I am struggling to get a simple hello world with fpweb with fastcgi >> with some luck but I cant seem to get any good output. I have the >> source code pos

Re: [fpc-pascal] fpweb fastcgi hello world example?

2011-07-27 Thread michael . vancanneyt
On Wed, 27 Jul 2011, Joseph Montanez wrote: I am struggling to get a simple hello world with fpweb with fastcgi with some luck but I cant seem to get any good output. I have the source code posted at https://gist.github.com/1108814#comments I've tried looking at the fpweb demos in the

[fpc-pascal] fpweb fastcgi hello world example?

2011-07-27 Thread Joseph Montanez
I am struggling to get a simple hello world with fpweb with fastcgi with some luck but I cant seem to get any good output. I have the source code posted at https://gist.github.com/1108814#comments I've tried looking at the fpweb demos in the 2.4.4 release but are using extjs and laz. Anyone

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

2008-12-15 Thread leledumbo
eds. -- View this message in context: http://www.nabble.com/Re%3A-Hello-World-for-Darwin---tp21011290p21027202.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.f

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

2008-12-15 Thread Brad Campbell
Skybuck Flying wrote: I suspect cross compiling not functional. Not unless you installed the cross compiler, no. I did find a free pascal compiler for Mac OS X so I ll give that one a try ;) The native compilers work fine on both Intel and PPC Macs. I believe building *nix cross compilers

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

2008-12-15 Thread Tomas Hajny
On Sun, December 14, 2008 23:32, Skybuck Flying wrote: > That didn't go well. > > Couldn't install package, the installer said. > > RTF can't be opened. > > So much for that. See information about cross-compilation in FPC Wiki (http://wiki.freepascal.org/Cross_compiling) including the referenced d

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

2008-12-15 Thread Skybuck Flying
That didn't go well. Couldn't install package, the installer said. RTF can't be opened. So much for that. Bye, Skybuck. - Original Message - From: "Skybuck Flying" To: "FPC-Pascal users discussions" Sent: Sunday, December 14, 2008 11:25 PM

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

2008-12-15 Thread Skybuck Flying
I suspect cross compiling not functional. I did find a free pascal compiler for Mac OS X so I ll give that one a try ;) This does require compiling inside a virtual machine which is less ideal/slow ? ;) And could expose source code but ok... net's disabled for now I hope ;) Bye, Skybuck.

  1   2   >