> > Actually, C isn't faster. That's a Myth (tm)
>
> Is there any scientific proof of this and written by a really known good c or
> pascal programmer? Any URLS? I just can't say it without a real acceptable
> proof. Even the language-shoutout website still shows c (gcc) is faster than
> fpc. :(
Those are compilers, not languages you are comparing. And keep in mind gcc
is a sponsored by three major worldwide corporations or so (Apple, IBM and
RedHat), with a bunch of fulltime programmers. FPC is done in spare time.
Taking this in account, to be honest, I think gcc should be ashamed for
those results.
> Though I'm a big fan of object pascal but I found myself that c (gcc) IS
> faster
> than fpc. Here's the simple comparison example:
You are measuring reading cooked input here, not language performance.
The rock bottom level of Pascal and C have a very similar common base.
The differences will be in the details. There are differences, but they are
so minute that it will be hard to actually benchmark them, since they
totally disappear in the noise of actually using two different compilers.
If you want to do this, you need to investigate comparable C and Pascal
code, and with grammar and pencil and paper in the hand try to make it
amenable that a compiler knows can optimize certain code more in C then the
comparable code in Pascal or the otherway around.
Of course the first time you publicise that, it will be attacked by a
barrage of "improved" benchmarks of the other side. (e.g. by going slightly
more lowlevel).
Btw can your implementation actually reliably read a textual "0" on stdin?
> Any hints? :)
Limit yourself to something that is actually bound by the language, and
don't benchmark a trivial textmode driver implementation.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives