Skip to content

Bring back support of PowerPC for Darwin: specific steps? #11216

@barracuda156

Description

@barracuda156

I want to bring back support for powerpc-apple-darwin & powerpc64-apple-darwin into ocaml. A quick look into the source code revealed that some sections of the current @4.14.0 still contain support for Darwin PPC (somewhat oddly denoting it as Rhapsody), while one necessary file has been removed – power-rhapsody.S: now runtime has only power.S – which should be in fact power-elf.S (like it was before). Restoring the file itself is trivial, since nothing changed with G4/G5 since then. Another necessary change is to bring back register definitions etc into asmcomp/power/proc.ml.

After patching configure to allow for powerpc-apple-darwin, replacing power.S with Rhapsody file and fixing proc.ml and arch.ml, compilation of ocaml ran on 10.6 PPC for quite a while, eventually failing with ld complaint about duplicate _caml_callback_exn symbol in power_libasmrunpic.o and callback.npic.o. I have not yet tried to figure out why that occurred. Anyway, so far it looks promising, unless I miss something out.

Any suggestions and hints are very much welcomed :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions