How can Linux run on different microprocessors?
-
How can Linux run on different microprocessors? Is the Linux kernel being compiled at installation each time?
-
Answer:
Each compiled/installed kernel image is built for one specific microprocessor (or microprocessor family usually). The source code is partly hardware-independent (= many drivers, schedulers, ...) and partly platform specific (= low-level interaction with hardware, ...), but the resulting binary is always specific for one architecture.
unknown (google) at Server Fault Visit the source
Other answers
Linux kernel is, as each compiled program, platform dependent. Kernel hackers are very skilled coders, so a huge part of the kernel code is written in a platform-aware way (by the use ho pre-processor macro for example), the remaining part has to be architecture dependent either for performance issues or because is is bounded to some hardware feature not present on other archs, and so on. This is not generally a limit in the ability of compiling a kernel on arch A and produce a kernel that will run on arch B, this process is known as cross-compilation, and is made by means of a http://en.wikipedia.org/wiki/Cross%5FCompiler So the answer is that it has not to be compiled at installation time, because it can be compiled or cross-compiled by your distro vendor. You could re-compile it on your own machine if you need to customize it, of couse.
AlberT
Usual steps to get linux working on particular platform: Download kernel sources Download specific platform patches (for example, for Atmel's AT91RM9200 ARM CPU) Apply official/non-official/your patches Download crosstool-ng or similar tool & build your crosscompiler/libraries Build your kernel Assembly/update/build your root manually or using scripts/toolies Transfer your kernel & root FS to your platform using either bootloader/JTAG/copying/other methods. Done Repeat for each platform.
Andrejs Cainikovs
It is normally compiled before installing. But yes it's compiled for each platform separately.
Michael Krelin - hacker
Related Q & A:
- How can I setup Canon MF5550 on Linux box?Best solution by Ask Ubuntu
- How can I run all my selenium tests sequentially in C#?Best solution by Stack Overflow
- How can you create a different page in Wordpress?Best solution by WordPress
- How can I run CMD command?Best solution by Super User
- How can I run faster?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.