haziz
haziz

Reputation: 13602

Clang on Power PC CPU Architecture?

Has anybody run Clang as a C compiler on ppc architecture? I am trying to resurrect an old G4 12 inch Powerbook (867 Mhz G4 CPU) and will install Linux (Debian with a Linux Mint/LXDE front end) on it, I will not run OS X on the machine. It seems fairly closely tied to Intel/X86 architecture. Will it run reasonably well as a C compiler on ppc? I realize I could run gcc but Clang is much more user friendly.

I will be using it purely as a C compiler, will not tap into it's C++ or Objective C abilities. My programs are student level programs (up to a few hundred lines) and so will likely not tax Clang's abilities.

Upvotes: 3

Views: 2700

Answers (2)

Jeremy Huddleston Sequoia
Jeremy Huddleston Sequoia

Reputation: 23651

Make sure you apply this patch if you have clang older than 3.1:

http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20111010/047625.html

Also, note that if your code uses "long double", it will not be built correctly until http://llvm.org/bugs/show_bug.cgi?id=11867 is resolved.

Upvotes: 0

haziz
haziz

Reputation: 13602

Just an update. I installed Clang 2.7 on Debian Stable 6.03 on a previously retired Mac Powerbook G4. At least with C, and using medium sized (up to a few hundred lines) programs restricted to the command line, it seems to work well.

Upvotes: 1

Related Questions