
On Thursday 23 March 2006 14:04, John R. McPherson wrote:
On Fri, Mar 24, 2006 at 01:59:34AM +1200, Glenn Enright wrote:
Anyone have some ideas why they never built an arch for p4 CPUs into the kernel? I realize that these are covered by i386. A little while ago, after looking round a bit in a custom tree and creating a p4 arch myself (Im not a programmer BTW, just hacking, pruned out some 'surplus' code mostly, using 2.6.14), a clean build ran in *lots* less time.
my 2.6.11 source tree has the option to target p4's:
Yes but the core of the kernel builds on the same code as used for most other intel chips. look at /usr/src/linux/arch/* for i386. Also all include files used are in /usr/src/linux/include/asm-i386. The main difference by using that selection is that the compiler builds in some optimisations that apply the that arch, via the Makefiles. The same source code is traversed, and one of the difficulties of having such general code is that it can bloat the builds a bit, simply through build overhead. Its easy to see that many efforts have been made to limit this effect through ifdef structures and such. -- Princess Leia Organa: Help me, Obi-wan Kenobi. You're my only hope.