emeryberger / Hoard

The Hoard Memory Allocator: A Fast, Scalable, and Memory-efficient Malloc for Linux, Windows, and Mac.
http://www.hoard.org
Apache License 2.0
1.09k stars 127 forks source link

Support Darwin PowerPC target #75

Closed barracuda156 closed 1 year ago

barracuda156 commented 1 year ago
  1. There is no way to make a wild guess about user preferences in terms of 32/64-bitness of the build via uname, AFAIK. So perhaps default to ppc, as a more common target.
  2. -D'CUSTOM_PREFIX(x)=xx\#\#x' looks strange. Is that intended?
emeryberger commented 1 year ago

AFAICT Darwin + PowerPC has not been supported since 2007. Am I wrong?

barracuda156 commented 1 year ago

AFAICT Darwin + PowerPC has not been supported since 2007. Am I wrong?

Depends by who. By Apple no. But GCC upstream supports it right now. Macports supports it. A number of other active projects support it.

emeryberger commented 1 year ago

OK, but how long has it been since a version of OS X has supported PPC? I ask because it’s adding special cases to the makefile for something that I am concerned is to all appearances dead.

barracuda156 commented 1 year ago

OK, but how long has it been since a version of OS X has supported PPC? I ask because it’s adding special cases to the makefile for something that I am concerned is to all appearances dead.

@emeryberger This is your project, and you can decide, of course. But if you do not mind that, I would appreciate if you allow adding this. It requires no active support from your side, it has been tested to work on PPC, and it will make our life easier in Macports.

But feel free to close the PR, if that is not acceptable. We can still support it locally in Macports after all.

P. S. SPARC is also dead, but targets for it are there.

emeryberger commented 1 year ago

LOL about SPARC :). Merging - thanks!