[fpc-pascal] intel asm and fpc-1.9.8

Jan Je/lowicki Jasj at OZI.AR.WROC.PL
Thu Mar 10 12:30:29 CET 2005

> From:           Jonas Maebe <jonas at zeus.ugent.be>
> 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 at lists.freepascal.org>
> Send reply to:  FPC-Pascal users discussions <fpc-pascal at 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
                                       jasj at ozi.ar.wroc.pl
Wroclaw University of Agriculture    Akademia Rolnicza we Wroclawiu
Department of Mathematics            Katedra Matematyki

More information about the fpc-pascal mailing list