Re: [fpc-pascal] code optimization

2010-09-26 Thread Florian Klämpfl
Am 24.09.2010 15:36, schrieb Jonas Maebe: > > On 24 Sep 2010, at 14:35, Jonas Maebe wrote: > >> On 24 Sep 2010, at 11:48, Adrian Veith wrote: >> >>> Register allocation is on a comparable level for both versions. >> >> Delphi keeps the "Bar" pointer in a register, while FPC spills it to >> the st

Re: [fpc-pascal] code optimization

2010-09-26 Thread Florian Klämpfl
With asm cse enabled as in 2.5, I think it should be also doable to use ebp as general purpose register if the stack frame is omitted, this should squeeze out another few percents. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.f

Re: [fpc-pascal] code optimization

2010-09-26 Thread Florian Klämpfl
Am 26.09.2010 23:53, schrieb Florian Klämpfl: > With asm cse enabled as in 2.5, Disabled I mean. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] code optimization

2010-09-26 Thread Jonas Maebe
On 26 Sep 2010, at 23:25, Florian Klämpfl wrote: > Am 24.09.2010 15:36, schrieb Jonas Maebe: >> >> Correction: Delphi keeps the hidden parent frame pointer parameter in a >> register (which is required every time Bar is accessed), while FPC puts >> it on the stack. The end result is the same tho