[fpc-pascal] inlining functions

2006-10-18 Thread Marc Santhoff
Hi, when using "inline" on a procedure or function, does it completely avoid the call by copying anything inside the "begin ... end" block to the right place? Example: function anythingFunc(v: integer):real; inline; begin ... some calculations ... end; function TMyObject.callAnything(v:

Re: [fpc-pascal] speed of real calculations

2006-10-18 Thread Jonas Maebe
On 18 okt 2006, at 12:38, Marc Santhoff wrote: Ah, this was the missing part. I have thought all of this was implemented only inside the compiler itself ... It is, except for x86 where the compiler is not involved with the precision used by the FPU since there are no different opcodes. J

Re: [fpc-pascal] speed of real calculations

2006-10-18 Thread Marc Santhoff
Am Mittwoch, den 18.10.2006, 11:57 +0200 schrieb Jonas Maebe: > On 18 okt 2006, at 11:20, Marc Santhoff wrote: > > > Divisions do make a difference for me. How can this setting be > > made, is > > there a compiler sitch involved or some symbol to define? > > http://community.freepascal.org:1000

Re: [fpc-pascal] speed of real calculations

2006-10-18 Thread Jonas Maebe
On 18 okt 2006, at 11:20, Marc Santhoff wrote: Divisions do make a difference for me. How can this setting be made, is there a compiler sitch involved or some symbol to define? http://community.freepascal.org:1/docs-html/rtl/math/ setprecisionmode.html Always check the result, since

Re: [fpc-pascal] speed of real calculations

2006-10-18 Thread Marc Santhoff
Am Mittwoch, den 18.10.2006, 09:54 +0200 schrieb Florian Klaempfl: > Jonas Maebe wrote: > > > > On 18 okt 2006, at 08:31, Marc Santhoff wrote: > > > >> is anyone aware of or has done a calculations speed comparison for the > >> four float types (single, double, extended, comp)? > > > > For the x

Re: [fpc-pascal] Lazarus, wov

2006-10-18 Thread Florian Klaempfl
lamikr wrote: > Wow, some tears dropped when I launched lazarus as old delphi 1 & delphi > 2 memories came to my mind. > And not only the look and feel, also the stability and easy to use > seemed nice compared to some old versions I tested long time ago. Hey, Lazarus tries to be on par with D7 re

Re: [fpc-pascal] speed of real calculations

2006-10-18 Thread Florian Klaempfl
Jonas Maebe wrote: > > On 18 okt 2006, at 08:31, Marc Santhoff wrote: > >> is anyone aware of or has done a calculations speed comparison for the >> four float types (single, double, extended, comp)? > > For the x87, the only difference can come from cache misses/hits due to > the different size

Re: [fpc-pascal] speed of real calculations

2006-10-18 Thread Jonas Maebe
On 18 okt 2006, at 08:31, Marc Santhoff wrote: is anyone aware of or has done a calculations speed comparison for the four float types (single, double, extended, comp)? For the x87, the only difference can come from cache misses/hits due to the different sizes they take up in memory, becaus