Re: [fpc-devel]default calling convention change for i386

2003-12-26 Thread Peter Vreman
On Wed, 24 Dec 2003, Peter Vreman wrote: }Most important was compatibility, second is speed. In the drystone test }there was a performance gain of at least 10%. Okay, I think this answers the question :) } Register convention saves opcode space in the called function, because } within }

Re: [fpc-devel]default calling convention change for i386

2003-12-24 Thread Jonas Maebe
On 24 dec 2003, at 00:39, Peter Vreman wrote: From today the default calling convention for i386 is changed from stdcall (the default since 1.9.0) to register calling. This means that you have to look at how assembler code loads the arguments and maybe store them yourself in local variables.

Re: [fpc-devel]default calling convention change for i386

2003-12-24 Thread Ingmar Tulva
Bad news :( Is this true for all {$mode }'s or only {$mode delphi} ? On Wed, 24 Dec 2003, Peter Vreman wrote: }Hi all, } }From today the default calling convention for i386 is changed from stdcall }(the default since 1.9.0) to register calling. This means that you have to }look at how assembler

Re[2]: [fpc-devel]default calling convention change for i386

2003-12-24 Thread Pavel V. Ozerski
Hello Ingmar, Wednesday, December 24, 2003, 1:21:32 PM, you wrote: IT Bad news :( IT Is this true for all {$mode }'s or only {$mode delphi} ? Why bad, Try to add {$calling oldfpccall} into your source -- Best regards, Pavelmailto:[EMAIL PROTECTED]

Re[2]: [fpc-devel]default calling convention change for i386

2003-12-24 Thread Ingmar Tulva
On Wed, 24 Dec 2003, Pavel V. Ozerski wrote: }IT Bad news :( } }IT Is this true for all {$mode }'s or only {$mode delphi} ? } }Why bad, Try to add {$calling oldfpccall} into your source Just personal taste, nothing else :) No, I'm not complaining, do what you find is right. Anyway, has someone

Re: [fpc-devel]default calling convention change for i386

2003-12-24 Thread Anton Tichawa
Hello! On Wednesday 24 December 2003 13:00, Ingmar Tulva wrote: Anyway, has someone actually analyzed how benefitial register calling convention is? Sure it provides huge speed boost in case of a function which adds two arguments together and returns the result - or is it so sure? In fact, I

Re: [fpc-devel]default calling convention change for i386

2003-12-24 Thread Anton Tichawa
On Wednesday 24 December 2003 16:36, Anton Tichawa wrote: This example still does not include the benefits within procedure my_function, namely the saving of instruction extension words with stack offsets. In that case, 2 memory accesses (to the instruction extension word and to the stack

[fpc-devel]default calling convention change for i386

2003-12-23 Thread Peter Vreman
Hi all, From today the default calling convention for i386 is changed from stdcall (the default since 1.9.0) to register calling. This means that you have to look at how assembler code loads the arguments and maybe store them yourself in local variables. The register calling is compatible with