Re: [fpc-devel] round(variant) needs type cast
On 16 apr 2007, at 23:14, Vincent Snijders wrote: If I compile this on win32, then there is no problem. If I compile this on win64, I get the following error: project1.pas(11,8) Error: Can't determine which overloaded function to call If change line 11 to d := Round(round(v)); the error disappears. Why does the same source compile on win32, but fail on win64? Because we do no support the extended type on win64, and the priority for overload choosing between double and currency is the same for variants (as in Delphi), and there is a round(double) and a round (currency). You get the same error on any non-x86 platform as well. Jonas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] round(variant) needs type cast
Jonas Maebe wrote: On 16 apr 2007, at 23:14, Vincent Snijders wrote: Why does the same source compile on win32, but fail on win64? Because we do no support the extended type on win64, and the priority for overload choosing between double and currency is the same for variants (as in Delphi), and there is a round(double) and a round(currency). You get the same error on any non-x86 platform as well. Is your conclusion that this is a feature, not a bug ? Micha ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
RE: [fpc-devel] BlackFin
> Michael Schnell schrieb: > > Florian, Thanks a lot for discussing this ! Big thanks from me too! > Coding the compiler part isn't that hard. I can do this, I > did the initial arm port within a few weeks. The more > annoying part is doing the debugging and find the things > being broken. We have to start a research hardware project end of may, and are also in the middle between choosing an ARM/FPC way or a blackfin/non fpc way. This discussions opens a new possibility, which I would gratly favour. We could help to debug a blackfin port, and i would also donate some money for a development board, if that helps. Helmut -- Helmut dot hartl at firmos.at ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] round(variant) needs type cast
On 17 apr 2007, at 09:28, Micha Nelissen wrote: Because we do no support the extended type on win64, and the priority for overload choosing between double and currency is the same for variants (as in Delphi), and there is a round(double) and a round(currency). You get the same error on any non-x86 platform as well. Is your conclusion that this is a feature, not a bug ? It's a fact you have to take into account. Jonas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
RE: [fpc-devel] BlackFin
> > Big thanks from me too! > > > Coding the compiler part isn't that hard. I can do this, > I > did the initial arm port within a few weeks. The more > > annoying part is doing the debugging and find the things > > being broken. > > We have to start a research hardware project end of may, and > are also in the middle between choosing an ARM/FPC way or a > blackfin/non fpc way. This discussions opens a new > possibility, which I would gratly favour. We could help to > debug a blackfin port, and i would also donate some money > for a development board, if that helps. > > Helmut Sorry, i forgot to mention a valuable source of information: http://www.bluetechnix.at/ -- Helmut dot hartl at firmos.at ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
RE: [fpc-devel] BlackFin
Hi! > Sorry, i forgot to mention a valuable source of information: > > http://www.bluetechnix.at/ Coincidental I'm (partly) working for this company and know their staff quite well. If you need any assistance or similar I'd be happy to help out. Bye Hansi ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] BlackFin
We have to start a research hardware project end of may, and are also in the middle between choosing an ARM/FPC way or a blackfin/non fpc way. This discussions opens a new possibility, which I would gratly favour. Great to know that I am not the only one ! :-) -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] BlackFin
If you're interested, start a wiki page with some information where to get docs, tools, info about calling conventions etc. Thanks for the encouragement ! Next month I'll see an FAE who just started supporting the BlackFin line. After that I hope I can see a bit clearer. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel