Powerbook

David Edelsohn dje at watson.ibm.com
Sat May 4 11:54:52 EST 2002


>>>>> Paul Mackerras writes:

Paul> No, if you're in for quick compilation, compile a kernel for i386
Paul> rather than a kernel for ppc, for some reason gcc is quicker at
Paul> producing x86 output than ppc output, i.e. the x86 compilation
Paul> involves less computation.

	PowerPC GCC is multi-arched by default for both 32-bit and 64-bit,
so many values internally are computed as 64-bit "long long" quantities.
i386 does not default to x86_64, so it uses word-sized ints.

	PowerPC GCC has many more registers to allocate and more
restricted operands for instructions.

	GCC on RISC (e.g., PowerPC) runs the scheduler at two different
phases of the compilation.  GCC on CISC (e.g., i386) runs the scheduler
only once.

	Those are some of the differences I can think of off the top of my
head.

David

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list