russellallen / self

Making the world safe for objects
http://selflanguage.org
698 stars 75 forks source link

Bring back PowerPC port (NB: not working) #138

Closed nbuwe closed 1 year ago

nbuwe commented 1 year ago

This PR does the menial work of bringing back the PowerPC port. NB: It does not work.

The ppc port of Self was targeting only the macs, so it does not work with the ELF ABI that has different call frame layout.

However the PR makes the tree buildable on NetBSD/macppc (and probably very little changes would be required to build on FreeBSD or Linux, if Linux still supports 32-bit ppc, that is). The PR doesn't affect any i386 code.

I think it's worth merging. It doesn't make any actually currently runnable code worse, and it brings the ppc code into a better shape, even if still not working. Should make life easier for someone who might be interested to continue the work on ELF (sup)port.

Unfortunately I don't have a MacOSX/ppc system to test if the code is still buildable there, on its intended target, but I think I was careful enough not to break things (too much).