Re: [fpc-devel] patch for heaptrc

2007-04-11 Thread Pierre Muller
 Attached patch add the same sanity check for the frame pointer in
 TraceReAllocMem as
 already is in TraceGetMem. It fixed crashes of Lazarus on win64 when
 compiled with
 heaptrc.

 Tested with fpc 2.1.3. fpc 2.3.1 is currently broken on win64, see mail of
 8 April.
I applied that to trunk,
is it needed fro fixes_2_2 branch also?

Pierre
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Floating point precision

2007-04-11 Thread Colin Western

Jonas Maebe wrote:


On 09 Apr 2007, at 22:38, Colin Western wrote:


Having said that, for numerical programming if double is wanted, the 
evaluation as double in the absence of specific precision information 
is actually desirable, and avoids some hard to find errors. Values 
like Sqrt(2) are common, which I should presumably write as 
Sqrt(Double(2)) to be sure I don't loose precision. It came up because 
my application (which requires double rather than single accuracy) was 
giving slightly different results for different architectures. I have 
now gone through and fixed the differences I can find, and the results 
are now the same, but it is difficult to be sure I have caught all the 
problem areas.


Is there some way of optionally making double the default for 
constants (rather than single) as a way of avoiding these errors?


Please file a bug report/feature request for this. The current behaviour 
is needed for Delphi compatibility, and for avoiding wrong precision 
loss warnings like in

  http://www.freepascal.org/mantis/view.php?id=7179


I have filed the feature request at
http://www.freepascal.org/mantis/view.php?id=8678

Having looked at 7179 would the behavior I want be obtained if we had 
the option just to treat 1.0 as Double rather than Single?


Colin
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] SymbianOS port

2007-04-11 Thread Marko Radojcic

I have done a bit of research of my own...

Basically, what was done is to try compiling for emulator and then
translating it to the native symbian code...

OK.

Let's think differently, if I would use Nokia Series 60 Symbian SDK, would
there be a difference of what kind of code the emulator likes?

I mean PE or ARM ?

Anyway, maybe I should try compiling for THE DEVICE and then manually run it
on the device...

Just to try if it works.

How should I configure makefiles to get the right cross-compiler?

P.S.
I'm have the latest svn from the svn.freepascal.org ...
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel