Re: [fpc-pascal] CPU registers and function calls, unclear explanation in the docs

2011-12-16 Thread Jonas Maebe
On 17 Dec 2011, at 01:59, Jonas Maebe wrote: > On 17 Dec 2011, at 01:46, Bernd wrote: > >> Is there maybe any other document somewhere that describes what >> *exactly* is expected by the compiler to happen with the registers >> during a function call or maybe somebody can show me where in the FP

Re: [fpc-pascal] CPU registers and function calls, unclear explanation in the docs

2011-12-16 Thread Jonas Maebe
On 17 Dec 2011, at 01:46, Bernd wrote: > Is there maybe any other document somewhere that describes what > *exactly* is expected by the compiler to happen with the registers > during a function call or maybe somebody can show me where in the FPC > sources I have to look to see for myself what exa

[fpc-pascal] CPU registers and function calls, unclear explanation in the docs

2011-12-16 Thread Bernd
The programmer's guide says in chapter 6.3 that when using "register" convention then it does not save any registers. A very old version of this document even said explicitly: "The registers are not saved when calling a function or procedure", this sentence is no longer in the programmer's guide bu