[fpc-pascal] Happy tickets benchmark
Vojtěch Čihák
vojtech.cihak at atlas.cz
Sat Feb 13 18:50:12 CET 2016
Thanks, but assembler links are wrong, all seem to point to test.c.
V. aka Blaazen
______________________________________________________________
> Od: leledumbo <leledumbo_cool at yahoo.co.id>
> Komu: <fpc-pascal at lists.freepascal.org>
> Datum: 13.02.2016 18:43
> Předmět: Re: [fpc-pascal] Happy tickets benchmark
>
Here's a test from my machine (Manjaro Linux x86_64 KDE desktop kernel 4.4.1
Core i5-4200u):
Below is the produced assembly from fpc, gcc and clang (no idea how to get
one for mono):
test.s
<http://free-pascal-general.1045716.n5.nabble.com/file/n5724116/test.s <http://free-pascal-general.1045716.n5.nabble.com/file/n5724116/test.s>>
test.s
<http://free-pascal-general.1045716.n5.nabble.com/file/n5724116/test.s <http://free-pascal-general.1045716.n5.nabble.com/file/n5724116/test.s>>
test.s
<http://free-pascal-general.1045716.n5.nabble.com/file/n5724116/test.s <http://free-pascal-general.1045716.n5.nabble.com/file/n5724116/test.s>>
I hope they can be optimizers' / code generator writers' reference to
improve our compiler.
Anyway, I've tried changing the for loop into while since Pascal's for isn't
a syntactic sugar for while as in C's for, but apparently that didn't change
anything so the emitted code is already as best as it can.
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Happy-tickets-benchmark-tp5724109p5724116.html <http://free-pascal-general.1045716.n5.nabble.com/Happy-tickets-benchmark-tp5724109p5724116.html>
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal <http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160213/a7961853/attachment.html>
More information about the fpc-pascal
mailing list