[fpc-devel]default calling convention change for i386

Marco van de Voort marcov at stack.nl
Wed Dec 24 11:56:36 CET 2003


> 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

To summarize it.

1.0.x has oldfpccall default
1.1.x/1.9.x has oldfpocall till about october/early november (?)
1.9.x after that had stdcall till yesterday.
1.9.x from now on will have register

IOW, you have to see for which of these the routines were designed, and then
select

{$calling stdcall}  	
{$calling register}	// FPC 1.9.x from now on, and Delphi origin
or

{$calling oldfpccall}






More information about the fpc-devel mailing list