Can anyone explains me why programs generated by Pascal compilers are less fast than programs generateds by C/C++ Compilers? Is this related with Compilation time? Pascal Compilers compile programs very fast compared c/c++ compilers.
Mailing lists / lazarus / 2011-09
Pascal's Compilers.
17 messages · 8 people · –
- LLukasz Sokol 5
- FFelipe Monteiro de Carvalho 3
- FFrank Church 3
- LLudo Brands 2
- CCristofer Martins 1
- HHenry Vermaak 1
- +2 more
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
This post is double posted from the forum:
http://www.lazarus.freepascal.org/index.php/topic,14770.0.html
Please don't double post.
For everyone else: Please don't answer in the mailling list to keep discussion in 1 place.
On 25 September 2011 08:15, Felipe Monteiro de Carvalho <
Show quoted text 14 lines
I wouldn't call that double posting as the mailing list and the forum are quite different places with different audiences. In the past I have learned that questions which get answers in one forum are not answered in the other.
I suppose as an advanced developer/contributor you keep an equal eye on both, but not so with other more knowledgeable users.
On 25 September 2011 08:15, Felipe Monteiro de Carvalho wrote:
This post is double posted from the forum:
http://www.lazarus.freepascal.org/index.php/topic,14770.0.html
Please don't double post.
For everyone else: Please don't answer in the mailling list to keep discussion in 1 place.
On 25 September 2011 08:15, Felipe Monteiro de Carvalho < I wouldn't call that double…
On 25 September 2011 08:15, Felipe Monteiro de Carvalho wrote:
This post is double posted from the forum:
http://www.lazarus.freepascal.org/index.php/topic,14770.0.html
Please don't double post.
For everyone else: Please don't answer in the mailling list to keep discussion in 1 place.
Can anyone explains me why programs generated by Pascal compilers are less fast than…
Cristofer Martins wrote 5 lines
This reminds me of an old joke of making of a Straw Man figure of speech...
/When/ will you stop beating up your wife/woman/girlfriend ? (select as appropriate)
L.
ICSMBIDWT... (I Could Stop Myself But I Didn't Want To)
Lukasz Sokol wrote 10 lines
This is actually a "loaded question", not a straw man. But I agree, Cristofer's question is a great example of this fallacy.
Henry
Henry Vermaak wrote 24 lines
There are always trade-offs.
In any case "*Show me the code!!*"
Frank Church wrote 29 lines
There is a *huge* difference in the "Memory KB" in most cases!
Paul Breneman wrote 38 lines
Yes that part is pretty obvious, but without seeing the program code most of these comparisons are not very meaningful.
Is c++ memory usage that bad?
Show quoted text 7 lines
Frank Church wrote 18 lines
I noticed the g++ code of at least the k-nucleotide test is using parallel processing! Whereas the main loop of the fpc program was mostly first- swallowing the stdin, then /reallocing/ buffers! No wonder FPC is slower here -do all languages get the same treatment on the shootout...? Or are some more even than others!
Lukasz
Lukasz Sokol wrotedo all languages get the same treatment on the shootout...? Or are some more even than others!
It seems to be the latter. This isn't a new topic though. There were already some talks on the - I believe - fpc-pascal list some months ago about improving the results. So if someone wants to see improved results there, then please improve the programs :)
Regards,
Sven
I noticed the g++ code of at least the k-nucleotide test is using parallel processing!…
Lukasz Sokol wrote 28 lines
this shows especially when you compare single vs quad-code results on the knucleotide...
L.
I noticed the g++ code of at least the k-nucleotide test is using parallel processing!…
Lukasz Sokol wrotedo all languages get the same treatment on the shootout...? Or are some more even than others!
The shootout is a hacking competition, it is not a scientific test of which language is faster.
It seems to be the latter. This isn't a new topic though. There were already some talks…
Sven Barth wrote 11 lines
Yeah I remember, I was one of them ;J only not much time for fun-hacking recently...
el es
The shootout is a hacking competition, it is not a scientific test of which language is…
Felipe Monteiro de Carvalho wrote 5 lines
Actually I wrote that because the last time I looked at the shootout some years ago it's description was quite humorous, it clearly stated that it is completely flawed and should not be used for serious things. It even made it hard to recommend FPC by linking to the shootout because it's description made the shootout look like a joke!
Now I entered it again and it's main description clearly invites people to choose a programming language based on the shootout results and the word "flawed" is nowhere to be found.
It looks like the shootout was take over by trolls!
Felipe Monteiro de Carvalho wroteOn Tue, Sep 27, 2011 at 4:19 PM, Felipe Monteiro de Carvalho wrote:
[...]
It looks like the shootout was take over by trolls!
And they made all efforts to make it look like it's /the/ thing to measure 'compiler efficiency'... (Although they still do mention it's like comparing apples and oranges, but then 'what if your choice is between apples and oranges' ...)
But there is no rules to it - hence in most cases g++ is the one to choose...
I would try but I've got life outside IT world which will ferociously defend itself :J
L.
