<p style="padding:0 0 0 0; margin:0 0 0 0;">Thanks, but assembler links are wrong, all seem to point to test.c.</p>

<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>

<p style="padding:0 0 0 0; margin:0 0 0 0;">V. aka Blaazen</p>

<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>

<p style="padding:0 0 0 0; margin:0 0 0 0;">______________________________________________________________<br />
> Od: leledumbo <leledumbo_cool@yahoo.co.id><br />
> Komu: <fpc-pascal@lists.freepascal.org><br />
> Datum: 13.02.2016 18:43<br />
> Předmět: Re: [fpc-pascal] Happy tickets benchmark<br />
></p>

<p style="padding:0 0 0 0; margin:0 0 0 0;">Here's a test from my machine (Manjaro Linux x86_64 KDE desktop kernel 4.4.1<br />
Core i5-4200u):<br />
<br />
<br />
Below is the produced assembly from fpc, gcc and clang (no idea how to get<br />
one for mono):<br />
test.s<br />
<<a href="http://free-pascal-general.1045716.n5.nabble.com/file/n5724116/test.s">http://free-pascal-general.1045716.n5.nabble.com/file/n5724116/test.s</a>>  <br />
test.s<br />
<<a href="http://free-pascal-general.1045716.n5.nabble.com/file/n5724116/test.s">http://free-pascal-general.1045716.n5.nabble.com/file/n5724116/test.s</a>>  <br />
test.s<br />
<<a href="http://free-pascal-general.1045716.n5.nabble.com/file/n5724116/test.s">http://free-pascal-general.1045716.n5.nabble.com/file/n5724116/test.s</a>>  <br />
<br />
I hope they can be optimizers' / code generator writers' reference to<br />
improve our compiler.<br />
<br />
Anyway, I've tried changing the for loop into while since Pascal's for isn't<br />
a syntactic sugar for while as in C's for, but apparently that didn't change<br />
anything so the emitted code is already as best as it can.<br />
<br />
<br />
<br />
--<br />
View this message in context: <a href="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</a><br />
Sent from the Free Pascal - General mailing list archive at Nabble.com.<br />
_______________________________________________<br />
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org<br />
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a></p>