Difference between revisions of "PowerPC64 Port"

From Free Pascal wiki
Jump to navigationJump to search
 
Line 2: Line 2:
  
 
This page contains only a rough outline of what is working and especially what not, more information later.
 
This page contains only a rough outline of what is working and especially what not, more information later.
 +
  
 
== Status ==
 
== Status ==
Line 19: Line 20:
 
* object messages do not work. This is an alignment problem.
 
* object messages do not work. This is an alignment problem.
 
* there are some problems with packages/FCL due to missing workaround for non-aligned accesses in some records. A workaround for this (instruction) limitation is being worked on.
 
* there are some problems with packages/FCL due to missing workaround for non-aligned accesses in some records. A workaround for this (instruction) limitation is being worked on.
* performance is really bad. Programs compiled with the ppc32 compiler are much faster, and the same program on a slower clocked x86_32 dances circles around both.
+
* performance is really bad. Programs compiled with the ppc32 compiler are much faster, and the same program on a slower clocked x86_32 dances circles around both. Note that regularly compiled PPC32 programs do NOT work on POWER and G5s on Linux at the moment.
  
 
== Contacts ==
 
== Contacts ==
  
 
Message to the fpc-devel mailing list, or look for "tom_at_work" in the IRC channel (or of course discuss it here).
 
Message to the fpc-devel mailing list, or look for "tom_at_work" in the IRC channel (or of course discuss it here).

Revision as of 15:39, 8 October 2005

The PowerPC64 port is in some sort of early beta-stage. It started as entry for the Linux On Power contest.

This page contains only a rough outline of what is working and especially what not, more information later.


Status

  • 2.1.x compiler support
  • Supports POWER4 and derivative (G5) for Linux at the moment.
  • Base RTL units and compiler is cycling fine.

Building

Since it's beta, with some slight bugs, only the knowledgeable and interested people should try it. As usual, if you do not have a G5, you need crossbinutils for linux-ppc64.

The target is called "powerpc64", so a "make PPC_TARGET=powerpc64" or "make PPC_TARGET=powerpc64-linux" if you are not running Linux, should do the trick.

Issues

  • -Or is currently broken
  • Exception handling does not seem to work, there is an issue with the sigaction() call (signal handlers fail to register)
  • object messages do not work. This is an alignment problem.
  • there are some problems with packages/FCL due to missing workaround for non-aligned accesses in some records. A workaround for this (instruction) limitation is being worked on.
  • performance is really bad. Programs compiled with the ppc32 compiler are much faster, and the same program on a slower clocked x86_32 dances circles around both. Note that regularly compiled PPC32 programs do NOT work on POWER and G5s on Linux at the moment.

Contacts

Message to the fpc-devel mailing list, or look for "tom_at_work" in the IRC channel (or of course discuss it here).