[MacPorts] #53184: A cxx11-compatible clang compiler on 10.5 PPC ?Some progress...
MacPorts
noreply at macports.org
Thu Dec 16 20:16:18 UTC 2021
#53184: A cxx11-compatible clang compiler on 10.5 PPC ?Some progress...
--------------------------+-----------------------------
Reporter: kencu | Owner: kencu
Type: enhancement | Status: closed
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: wontfix | Keywords: leopard powerpc
Port: |
--------------------------+-----------------------------
Comment (by kencu):
I am not an expert, but as I understand the term in this context, lowering
refers to the process of taking a higher level language representation and
changing it towards something "lower", ie closer to machine language.
So c++ becomes LLVM-IR and that becomes intermediate steps until the final
assembly language is printed out. That then used to be sent to a separate
assembler, but on Intel LLVM does the assembly by itself too for many
targets.
The stage that I believe has never been finished is the stage where
arguments from the LLVM-IR are modified into the proper spacing and
register assignments to match the Darwin PowerPC ABI.
This has been done for the ELF (Linux) PowerPC ABI, and I currently run
llvm-13, clang-13, rust, etc on my G4 and G5 PowerMacs using Debian Linux
11. So it is possible to do the fixing for the Darwin PowerPC ABI, but
nobody has done it.
See, for example:
https://llvm.org/doxygen/structllvm_1_1PPCTargetLowering_1_1CallFlags.html#details
--
Ticket URL: <https://trac.macports.org/ticket/53184#comment:35>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list