Re: compiling the kernel not using (linux, gcc)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sun, 2005-11-20 at 10:16 +0200, MHD.Tayseer wrote:
Hi all
I have a proprietery cross compiler that runs on a Windows i386 platform
.. i'm wondering if i can compile the Linux kernel with it
I can't use gcc and binutils cause i wanna cross compiling to a arch
that is not supported by gcc

I think you're in waaay deep then... I don't think there is any
architecture that has no gcc port but does have a kernel port today...
so you'll have to port not only to another compiler, but also to another
architecture. That's, ehm, not a trivial task.

well this is right, actually there is no kernel port to that architecture so i have two paths, either port the kernel/libc first and compile it with another compiler then i'll port the gcc or the opposite .. so it's a mater of from which to start first the kernel or the compiler. and i don't have enough time cause this project will be my graduate project so i have 8 monthes from now to do something mesurable

3- is the source of the kernel written without any GNU C extensions .. i
mean will it compile with C99 standard ?

No. In many places, especially architecture specific ones, it depends on
gcc-isms. And on binutils/elf.

It is possible to use other compilers to some extend; but only if those
compilers have enough gcc extensions added to them.
i know that the most of the arch precific layer are written in assembly .. please can you give me some details about this point (about gcc-isms, binutils/elf) cause if it's impossible to use another compiler to build the kernel then i don't have another way but to think of porting gcc
Thanks alot Arjan for helping me
MHD.Tayseer


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux