Re: [fpc-pascal] Problem with code aligning (probably)

2022-10-19 Thread Jonas Maebe via fpc-pascal
On 20/10/2022 00:24, Vojtěch Čihák via fpc-pascal wrote: Hi again, I moved directives from {$CODEALIGN JUMP=2} to -OaJUMP=2 in Project Options but I still did not found solution. I observed that when code is - after some change - slower, I can solve it by changing -OaJUMP=2 to -OaJUMP=1.

Re: [fpc-pascal] Problem with code aligning (probably)

2022-10-19 Thread Vojtěch Čihák via fpc-pascal
Hi again, I moved directives from {$CODEALIGN JUMP=2} to  -OaJUMP=2 in Project Options but I still did not found solution. I observed that when code is - after some change - slower, I can solve it by changing -OaJUMP=2 to -OaJUMP=1. And after next change - if it causes slower code - I can solv

Re: [fpc-pascal] Problem with code aligning (probably)

2022-10-19 Thread Vojtěch Čihák via fpc-pascal
It seems I have some success with following:   {$CODEALIGN LOOP=4} {$CODEALIGN PROC=4} {$CODEALIGN CONSTMIN=4} {$CODEALIGN VARMIN=4} {$CODEALIGN LOCALMIN=4} {$CODEALIGN JUMP=4}   I expected higher numbers on 64-bit platform. Also, I don't know yet which of the numbers affects my problem.   __

[fpc-pascal] Problem with code aligning (probably)

2022-10-19 Thread Vojtěch Čihák via fpc-pascal
Hi,   I wrote a generic class to test sorting algorithms and also benchmarking them. I have following problem:   When I change even a single line of code anywhere in that unit, even in an unrelated method, all ~40 algorithms become a little slower or a little faster. I observed it has two levels