Re: [fpc-devel] Question about Currency support

2012-06-04 Thread Sven Barth
Am 04.06.2012 08:47 schrieb "Fuxin Zhang" : > BTW, > for the statement i := j / 10.0, is that in the div node, resultdef > refers to i, left refers to j, and right refers to 10.0? > But for the typeconvnode, what is the result/left/right node? AFAIK the tree of that statement will be the followi

Re: [fpc-devel] Question about Currency support

2012-06-04 Thread Sven Barth
Am 04.06.2012 10:22 schrieb "Sven Barth" : > > In general, is there a way for me to learn about the node generating > > process? E.g. add print somewhere to show it? Add in each node seems too > > much... > > AFAIK FPC has an option for this. Call the compiler using -h and check the -v options. One

Re: [fpc-devel] Question about Currency support

2012-06-04 Thread Fuxin Zhang
> Am 04.06.2012 10:22 schrieb "Sven Barth" : >> > In general, is there a way for me to learn about the node generating >> > process? E.g. add print somewhere to show it? Add in each node seems >> too >> > much... >> >> AFAIK FPC has an option for this. Call the compiler using -h and check > the -v

Re: [fpc-devel] Question about Currency support

2012-06-04 Thread Jonas Maebe
Fuxin Zhang wrote on Mon, 04 Jun 2012: I guess it is related to mips/ncpucvn.pas: tmipseltypeconvnode.first_int_to_real when compared to ncnv.pas, it seems ignore the floatype of resultdef. But using the inherited first_int_to_real is impossible since int64_to_float64/float32 etc. are not im

Re: [fpc-devel] progress of freepascal for mips

2012-06-04 Thread Leonardo M . Ramé
You are right, the machine (http://www-03.ibm.com/systems/power/hardware/560/specs.html) doesn't have a MIPS processor, but an IBM's Power6. BTW, does anyone know which Linux distribution runs on that machine?, can FPC be compiled to run on it?.   Leonardo M. Ramé http://leonardorame.blogspot.c

Re: [fpc-devel] progress of freepascal for mips

2012-06-04 Thread Jonas Maebe
On 04 Jun 2012, at 23:56, Leonardo M. Ramé wrote: > You are right, the machine > (http://www-03.ibm.com/systems/power/hardware/560/specs.html) doesn't have a > MIPS processor, but an IBM's Power6. > > BTW, does anyone know which Linux distribution runs on that machine? http://www.google.be/

Re: [fpc-devel] progress of freepascal for mips

2012-06-04 Thread Leonardo M . Ramé
> > From: Jonas Maebe >To: Leonardo M. Ramé ; FPC developers' list > >Sent: Monday, June 4, 2012 7:19 PM >Subject: Re: [fpc-devel] progress of freepascal for mips > > >On 04 Jun 2012, at 23:56, Leonardo M. Ramé wrote: > >> You are right, the machine >> (http://w

Re: [fpc-devel] Question about Currency support

2012-06-04 Thread Fuxin Zhang
> In general, the type using which Pascal expressions are evaluated is > completely independently from how the result is used afterwards. > > Currency is a special case because of all the scaling going on though. > In addition to the resultdef, there's also the nf_is_currency node > flag to determi

Re: [fpc-devel] progress of freepascal for mips

2012-06-04 Thread Fuxin Zhang
>>Yes, both under AIX and under Linux (either the ppc32 or the ppc64 >> version of FPC). >> >   > That means that there is a native version of FPC or an emulated x86 > version? Judging from the source, it should be a native version. > > > Leonardo M. Ram� > http://leonardorame.blogspot.com > > __

Re: [fpc-devel] progress of freepascal for mips

2012-06-04 Thread microcode
On Mon, 4 Jun 2012 14:56:06 -0700 (PDT) Leonardo M. Ramé wrote: > You are right, the machine > (http://www-03.ibm.com/systems/power/hardware/560/specs.html) doesn't > have a MIPS processor, but an IBM's Power6. > > BTW, does anyone know which Linux distribution runs on that machine?, can > FPC b