From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <564d7f52203aff14174c2c7cee6ab59a@quanstro.net> References: <13426df10903191624m51f94c91qc0660089f8e58a17@mail.gmail.com> <564d7f52203aff14174c2c7cee6ab59a@quanstro.net> Date: Fri, 20 Mar 2009 07:23:19 -0700 Message-ID: <13426df10903200723h48d692e3lb1266a112c61d8f7@mail.gmail.com> From: ron minnich To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [9fans] I can not remember if I sent this or not: MIPS-64 (sort of) notebook Topicbox-Message-UUID: c0a7bd7a-ead4-11e9-9d60-3106f5b1d025 On Thu, Mar 19, 2009 at 4:43 PM, erik quanstrom wrote: >> so, here's a silghtly controversial (maybe) suggestion. Maybe my >> memory is wrong, but i believe the vx32 kernel is gcc-compiled. There >> is gcc for this CPU. It might be easier to start from the vx32 kernel >> and gcc to target this machine, rather than do a 64-bit MIPS port of >> the plan 9 C compiler. Or not: a few of the folks on this list could >> probably retarget in very short order (I'm not one of the,however). > > vx32 relies on x86 segment registers. Let me say it differently. The way in which the plan 9 kernel code was changed to be gcc-compilable as part of the vx32 kernel might provide some hints as to how to change a whole plan 9 kernel. The point being, it is not impossible to get a gcc-compilable plan 9 kernel. We used to talk about this at LANL all the time: we called it the "evil project". (This idea predates vx32 but it was not my idea; I will let the evil person behind the evil project identify himself). This change would remove "have to port&test&validate&fix&validate&... the C compiler first" as a barrier to entry on new CPUs. see src/vx32 in the vx32 tree. ron