[fpc-pascal] Happy tickets benchmark

Florian Klämpfl florian at freepascal.org
Sun Feb 14 16:28:42 CET 2016


Am 14.02.2016 um 16:08 schrieb leledumbo:
>> Not so good at all. 
>> It doesn't explain why C# with IL is significantly better than native 
>> code generated by FPC.
> 
> I believe the .NET runtime has optimizations that Florian, judging from his
> answer a few posts behind, is not willing to commit due to low real world
> benefit. He seems to have Prof. Wirth spirit in that compilation must be as
> fast as possible while generating code as optimized as it can in that
> available time. I don't understand though, why it can't be made another
> -OoXXX that's disabled by default

As the original poster was even not able to find out that -Ooloopunroll is available and even helps
(at least with 3.0.0, see Graemes post) I see no point in another switch.

> and perhaps activated in -O3 and above
> only (-O2 is used to bootstrap the compiler toolchain, if you don't override
> it, so it won't be affected).




More information about the fpc-pascal mailing list