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

2022-10-20 Thread Jonas Maebe via fpc-pascal
On 20/10/2022 16:46, Vojtěch Čihák via fpc-pascal wrote: Thanks, although it's not very optimistic. Is there anything else I can try except {$CODEALIGN ...}? For example change heap or stack size but I don't know what values should I try since I never needed it. Changing the heap or stack si

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

2022-10-20 Thread Vojtěch Čihák via fpc-pascal
like some AM5? New CPUs have at least bigger caches   Thanks.   __ Od: "Jonas Maebe via fpc-pascal" Komu: fpc-pascal@lists.freepascal.org Datum: 20.10.2022 08:45 Předmět: Re: [fpc-pascal] Problem with code aligning (probably)

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
[fpc-pascal] Problem with code aligning (probably)   __ Od: "Vojtěch Čihák via fpc-pascal" > Komu: "FPC-Pascal users discussions" > Datum: 19.10.2022 15:37 > Předmět: [fpc-pascal] Problem wit

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

2022-10-19 Thread Vojtěch Čihák via fpc-pascal
oblem.   __ Od: "Vojtěch Čihák via fpc-pascal" Komu: "FPC-Pascal users discussions" Datum: 19.10.2022 15:37 Předmět: [fpc-pascal] Problem with code aligning (probably) Hi, ...   Thanks for help. __

[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