hi friends,
I have started reading on porting Linux on the ARM. I have a question. we can compile the simple project on the keil for ARM. can I compile the source code of linux(modified for that ARM) on keil???
thanks in advance.
Ok, thanks for your quick answer, but I dont want to use open source build tools.
Why the heck not, since you're already planning to use open source kernel source?
Then I make a simple project of these two source in Keil and compile it.
You have no idea how utterly far over your head you are with that plan. The Linux kernel is about the most un-simple project you could possibly deal with. Nobody in their right mind uses IDEs to build projects of the scale the Linux kernel is.
And that's before we consider that Linux is explicitly written to be build with GCC, in several places. There's simply no way Realview will compile that.
In a word: forget it.
By the way, Intel's compiler can build a linux kernel:
www.linuxjournal.com/.../linuxdna-supercharges-linux-intel-cc-compiler
As far as I understand, Intel implemented many GCC's features in order to make it possible. Of course, RealView developers never intended to do that.
ARM's C compiler already understands many GNUisms. I think the linker even supports gld-scripts to some degree. Translating the gas syntax is perhaps one of the remaining issues.
The question is whether being able to compile a Linux kernel with any compiler really makes a lot of sense. The numbers in the link you posted came without any context. Although I am not a Linux kernel expert, I am sure that most performance critical code paths have been implemented in architecture specific optimized ASM routines. The "40%" might have been achieved in a rarely used code path that nobody found worth optimizing.
Cheers, Marcus http://www.doulos.com/arm/