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

2012-06-05 Thread Sven Barth

Am 05.06.2012 02:43, schrieb Leonardo M. Ramé:


From: Jonas Maebejonas.ma...@elis.ugent.be
To: Leonardo M. Ramémartinr...@yahoo.com; FPC developers' 
listfpc-devel@lists.freepascal.org
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://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/search?hl=enq=IBM+Power+560+Express+linux
-
   http://www.acclinet.com/ibm-servers/ibm-power-560-server.asp


can FPC be compiled to run on it?.


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?


Natively for both AIX and Linux.

Regards,
Sven
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Question about Currency support

2012-06-05 Thread Jonas Maebe


Fuxin Zhang wrote on Tue, 05 Jun 2012:


Is it the test program taddcurr.pp cannot work for non-x86 systems?


It works on SPARC at least:  
http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi?action=3run1id=113194testfileid=99


It doesn't work on ppc32 currently, but that's due to a bug in the  
ppc32 code generator somewhere (the ppc compiler halts with an  
internalerror; I haven't had the time yet to properly debug it).



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


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

2012-06-05 Thread Jonas Maebe


microcode wrote on Tue, 05 Jun 2012:


The best OS is the one IBM made for it, AIX which is a POSIX UNIX with
IBM extensions (and great doc!).


It's true that IBM has great documentation. But AIX has quite a few  
quirks compared to other Unices, even commercial/traditional big iron  
ones like Solaris. My main pet peeve is that it does not protect  
against reads from nil pointers for optimization reasons. I've  
collected some more at  
http://wiki.freepascal.org/FPC_AIX_Port#AIX_quirks


Another one, which isn't mentioned on that page because it doesn't  
affect end users of the compiler/RTL, is that AIX uses different code  
page names in libiconv than all other Unix-based platforms we support.  
That's in part because the iconv standard isn't worth the name  
standard (it defines almost nothing), but it would have been nice if  
the IBM people could have added some extra code page names so as to be  
more compatible with other libiconv implementations.



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


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

2012-06-05 Thread Mark Morgan Lloyd

microc...@zoho.com wrote:

On Mon, 4 Jun 2012 14:56:06 -0700 (PDT)
Leonardo M. Ramé martinr...@yahoo.com 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 be compiled to run on it?. 
Leonardo M. Ramé

http://leonardorame.blogspot.com


Congrats, that's a nice box. POWER6 is one generation behind but from what
I read it can still run the latest version of AIX.

The best OS is the one IBM made for it, AIX which is a POSIX UNIX with
IBM extensions (and great doc!). You should be able to get a copy without
too much difficulty if one isn't already installed.

On the same page you linked above, there is a list of some Linux that are
certified to run on your box. Running Linux on it would be a horrible
waste of a good server. You can probably virtualize Linux and BSD instances
under AIX though, as you had mentioned in your first post.


With the caveat that, as I understand it, this is a hardware-assisted 
partitioning operation and is likely to have a very different feel 
from things like VMWare. As an example (and possibly you can confirm 
this), my understanding is that there are facilities in the system 
firmware, i.e. accessed from something analogous to a BIOS setup 
screen, that dictate how SCSI devices will be distributed between LPARs.


In any event, if Leonardo successfully runs Linux or BSD in a partition 
I hope he writes it up somewhere. My PPC system is only an old Mac 
running Debian, but I think having the info would be useful.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Question about Currency support

2012-06-05 Thread Fuxin Zhang

 Fuxin Zhang wrote on Tue, 05 Jun 2012:

 Is it the test program taddcurr.pp cannot work for non-x86 systems?

 It works on SPARC at least:
 http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi?action=3run1id=113194testfileid=99

 It doesn't work on ppc32 currently, but that's due to a bug in the
 ppc32 code generator somewhere (the ppc compiler halts with an
 internalerror; I haven't had the time yet to properly debug it).

I have found the cause of failure:

  double div 99900/1.0 = 9.99 in round to nearest mode, =9.899.. in
round to zero mode.

After correcting the related fpc_setfsr, taddcurr.pp now pass.



 Jonas



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


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

2012-06-05 Thread Leonardo M . Ramé

 From: Mark Morgan Lloyd markmll.fpc-de...@telemetry.co.uk
To: fpc-devel@lists.freepascal.org 
Sent: Tuesday, June 5, 2012 6:38 AM
Subject: Re: [fpc-devel] progress of freepascal for mips
 
microc...@zoho.com wrote:
 On Mon, 4 Jun 2012 14:56:06 -0700 (PDT)
 Leonardo M. Ramé martinr...@yahoo.com 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 be compiled to run on it?. Leonardo M. Ramé
 http://leonardorame.blogspot.com
 
 Congrats, that's a nice box. POWER6 is one generation behind but from what
 I read it can still run the latest version of AIX.
 
 The best OS is the one IBM made for it, AIX which is a POSIX UNIX with
 IBM extensions (and great doc!). You should be able to get a copy without
 too much difficulty if one isn't already installed.
 
 On the same page you linked above, there is a list of some Linux that are
 certified to run on your box. Running Linux on it would be a horrible
 waste of a good server. You can probably virtualize Linux and BSD instances
 under AIX though, as you had mentioned in your first post.

With the caveat that, as I understand it, this is a hardware-assisted 
partitioning operation and is likely to have a very different feel from 
things like VMWare. As an example (and possibly you can confirm this), my 
understanding is that there are facilities in the system firmware, i.e. 
accessed from something analogous to a BIOS setup screen, that dictate how 
SCSI devices will be distributed between LPARs.

In any event, if Leonardo successfully runs Linux or BSD in a partition I hope 
he writes it up somewhere. My PPC system is only an old Mac running Debian, 
but I think having the info would be useful.

-- Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

I have no problem at all, in fact, I would like to create a VM for the FPC team 
for testing. Hopefully I'll start trying to create a Linux or Bsd machine on it 
this week.


Leonardo M. Ramé
http://leonardorame.blogspot.com
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel