On Sat, Apr 08, 2006 at 12:33:20AM +0200, Joris Huizer wrote: | Christopher Nelson wrote: | >On Fri, Apr 07, 2006 at 10:01:08PM +0200, Joris Huizer wrote: | > | >>Yu,Glen [Ontario] wrote: | >> | >>>I was wondering if it's possible to copy the vmlinuz-x.y.z from one | >>>machine to another and have the other machine run properly with it.
If you copy every component needed by the kernel. As an example, see the kernel packages provided by debian. They are build on a buildd somewhere, then installed on your machine and they work. | >Probably doesn't have to be said, but this also assumes the same | >architecture. A mips kernel would probably not work on an i386 machine | >(unless I'm mistaken in how generic the distribution kernels are--I | >build my own). | > | | It'd be *really* cool if linux & gcc/as somehow manage to produce code | that is meaningfull on different architectures ;-) It could, but since you have the source no one is terribly interested. See Apple's "Universal Binary" for proof of the concept. (they put the PPC and x86 binaries in the same file and the loader chooses the correct machine code at run time) You could also set up cross-compilation if you needed to. (run the compiler on a x86 but build binaries for a mips) | <I think writing such code would be a total nightmare> It wouldn't be any different than it is now. You simply follow the rules and the compiler is the one that deals with the CPU's instruction set and memory layout and so on. -D -- \begin{humor} Disclaimer: If I receive a message from you, you are agreeing that: 1. I am by definition, "the intended recipient" 2. All information in the email is mine to do with as I see fit and make such financial profit, political mileage, or good joke as it lends itself to. In particular, I may quote it on USENET or the WWW. 3. I may take the contents as representing the views of your company. 4. This overrides any disclaimer or statement of confidentiality that may be included on your message \end{humor} www: http://dman13.dyndns.org/~dman/ jabber: [EMAIL PROTECTED]
signature.asc
Description: Digital signature