Questions tagged [powerpc]

Questions related to the PowerPC family of RISC processors.

PowerPC is a RISC architecture created jointly by Apple, IBM, and Freescale (formerly Motorola). The PowerPC standard is now handled by Power.org. It includes both 32 and 64 bit versions of the processor.

Helpful Links:

See Also:

705 questions
94
votes
8 answers

How can we restore ppc/ppc64 as well as full 10.4/10.5 SDK support to Xcode 4?

Since Apple only ships SDK 10.6 with Xcode4, developing PPC applications with Xcode4 became impossible. While it is possible to develop applications with Xcode4 that can also run on 10.5 and maybe even on 10.4 systems (by selecting SDK 10.6, but…
Mecki
  • 125,244
  • 33
  • 244
  • 253
54
votes
3 answers

How to compile dts Linux device tree source files to dtb?

I have a device tree file (.dts) and I want to compile the file for my powerpc based board. How can I do it on my machine, which is not powerpc based?? Can I do it with the DTC installed on my Ubuntu system? Or will it be more like using a separate…
36
votes
4 answers

python easy_install fails with "assembler for architecture ppc not installed" on Mac OS X

bash-3.2$ sudo easy_install appscript Password: Searching for appscript Reading http://pypi.python.org/simple/appscript/ Reading http://appscript.sourceforge.net Best match: appscript 1.0.0 Downloading…
Tom
  • 371
  • 5
  • 4
27
votes
5 answers

Do I really have to worry about alignment when using placement new operator?

I read this When should I worry about alignment? but I am still do not know if I have to worry about not aligned pointer returned by placement new operator - like in this example: class A { public: long double a; long long b; A() : a(1.3),…
PiotrNycz
  • 23,099
  • 7
  • 66
  • 112
18
votes
4 answers

Installing PIL on OS X Snow Leopard w/Xcode4 (no PPC support)

Xcode4 dropped PPC support, so when I try building PIL, it throws hate: Bens-MacBook-Air:Imaging-1.1.7 bkeating$ python setup.py build running buildrunning build_pyrunning build_ext --- using frameworks at /System/Library/Frameworks building…
Ben Keating
  • 8,206
  • 9
  • 37
  • 37
18
votes
6 answers

How do I create a single makefile for both 32- and 64-bit?

I have a makefile that works transparently for Linux (x86_64) and OS X Intel (x86_64). This uses 64-bit specific GCC options. Is there a way to adjust the makefile so that I could build for 32-bit and 64-bit OS X PPC (ppc, ppc64) without having to…
Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345
18
votes
3 answers

How can I use mach_absolute_time without overflowing?

On Darwin, the POSIX standard clock_gettime(CLOCK_MONOTONIC) timer is not available. Instead, the highest resolution monotonic timer is obtained through the mach_absolute_time function from mach/mach_time.h. The result returned may be an unadjusted…
Nicholas Wilson
  • 9,435
  • 1
  • 41
  • 80
18
votes
5 answers

What makes Apple's PowerPC memcpy so fast?

I've written several copy functions in search of a good memory strategy on PowerPC. Using the Altivec or fp registers with cache hints (dcb*) doubles the performance over a simple byte copy loop for large data. Initially pleased with that, I threw…
user242091
18
votes
2 answers

Why is function's length information of other shared lib in ELF?

Our project (C++, Linux, gcc, PowerPC) consists of several shared libraries. When releasing a new version of the package, only those libs should change whose source code was actually affected. With "change" I mean absolute binary identity (the…
Ingmar
  • 2,361
  • 3
  • 19
  • 33
16
votes
1 answer

How do I add PPC/PPC64 support back to Xcode 4.2 under Lion?

I have a Lion (10.7.1) system on which I installed Xcode 4.2. Suppose I have a simple C program helloWorld.c as follows: #include main() { printf("hello, world\n"); } Using this setup, I would like to try to compile helloWorld.c for use…
Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345
16
votes
3 answers

How can I know what type of debug info is in an ELF object file?

I have an ELF object file. I want to know which type of debugging info it contains. It was compiled with the Diab compiler (C source) for the PPC architecture. I'm pretty sure it was built with debugging symbols. I have tried extracting the…
johnj33
  • 161
  • 1
  • 1
  • 3
16
votes
2 answers

GCC refuses to emit long calls for operator new/delete on PowerPC

PowerPC branches only have 24 bits available for the target offset, so if the text section gets too big, branches on one end won't be able to reach targets on the other. There's a longer sequence of instructions that can reach targets farther away…
Michael Mrozek
  • 169,610
  • 28
  • 168
  • 175
15
votes
4 answers

Is it possible to make Node.js use Rhino as the Javascript engine?

I use Node.js for several jobs on my web apps and so far everthing's ok. But the Node.js uses Google's V8 as the default Javascript engine (JSE) and V8 runs exlusively on the x86 and ARM Instruction Set Architectures (ISA). Now I have a PPC…
Terry
  • 1,206
  • 1
  • 10
  • 26
15
votes
1 answer

Why is there a dramatic speed drop for access to static ram over cache c++?

Background I have been looking into potentially using the MPC5200 static ram space as scratch pad memory. We have 16Kb of unused memory that appears on the processor bus (source). Now some important implementation notes are: This memory is used by…
Fantastic Mr Fox
  • 32,495
  • 27
  • 95
  • 175
14
votes
4 answers

Incorrect floating point behavior

When I run the below C++ program in a 32-bit powerpc kernel which supports software floating emulation (hardware floating point disabled), I get a incorrect conditional evaluation. Can some tell me what's the potential problem here? #include…
rajachan
  • 795
  • 1
  • 6
  • 20
1
2 3
46 47