Re: [fpc-pascal]Default calling convention

2004-07-03 Thread Marcel Martin
Florian Klaempfl a écrit : > > Thomas Schatzl wrote: > > > > In this case > > > > procedure nx_fill(P: PLongword; Count: Longint; Value: Longword); > > assembler; > > asm > > pushl %edi > > movlP,%edi // edi <- P > > movlValue,%eax // eax <- Value >

Re: [fpc-pascal]Re: Behavior of system.New procedure

2004-07-03 Thread Luiz Américo
Jeff Pohlmeyer wrote: After allocating a new instance for Arec with New proc, the record fields (APointer and Aint) will be always zero filled or will receive random values? You must do as if it contains the most unexpected data, and therefore initialise the fields *yourself*, and the safer is t

Re: [fpc-pascal]Default calling convention

2004-07-03 Thread Florian Klaempfl
Thomas Schatzl wrote: In this case procedure nx_fill(P: PLongword; Count: Longint; Value: Longword); assembler; asm pushl %edi movlP,%edi // edi <- P movlValue,%eax // eax <- Value movlCount,%ecx // ecx <- Count rep

[fpc-pascal]Re: Behavior of system.New procedure

2004-07-03 Thread Jeff Pohlmeyer
> > After allocating a new instance for Arec with New proc, > > the record fields (APointer and Aint) will be always > > zero filled or will receive random values? > You must do as if it contains the most unexpected data, > and therefore initialise the fields *yourself*, and the > safer is to d