> From: Jonas Maebe <[EMAIL PROTECTED]> > Subject: Re: [fpc-pascal] intel asm and fpc-1.9.8 > Date sent: Wed, 9 Mar 2005 17:59:45 +0100 > To: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org> > Send reply to: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org>
> > On 9 mrt 2005, at 17:13, Jan Je/lowicki wrote: > > > Today I tried new fpc 1.9.8. Output generated from fpc 1.9.8 code > > seems errorenous. The isolated example given below tries to fill an > > array of float with contstant value. Gdb (5.3) gives no reasonable > > support, although for 1.0.10 code it does. > > The default calling convention changed to register parameters in 1.9.8. > Add {$calling fpccall} at the top of your source to revert to the > slower stack-based parameter passing. > Thank you, that was the case. Suggested by your answer, I have found an interesting discusssion in fpc-devel archives. ($calling fpccall should be relalced by oldfpccall, I guess.) Keeping stack-based convention is slower, but this has minor meaning for me, as I save much more time by putting inner loops into registers (thousands operations per typical call) than I waste using stack frame (one time per call). However, the first operation to be done is to load addresses from stack to registers and I think that should be avoided using new convention. with regards Jan Jelowicki [EMAIL PROTECTED] ------------------------------------------------------------------- Wroclaw University of Agriculture Akademia Rolnicza we Wroclawiu Department of Mathematics Katedra Matematyki ------------------------------------------------------------------- _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal