Re: About GNU Toolchain



huxuelei630@xxxxxxxxx wrote:
Hi, I am a new one in embedded system.
Can any one tell me some good web sites to learn how to build GNU
Toolchain on different platforms?
Thanks.

Here are a couple of general pages to get started:

http://www.kegel.com/crosstool/
http://gcc.gnu.org/wiki/Building_Cross_Toolchains_with_gcc


Theoretically, generating a cross-compiler for a target supported by gcc is just a matter of downloading the standard gcc sources, configuring for your target, and following the standard "make" installation as documented on the gcc web pages. However, in practice there are a few things to consider:

* Libraries

* Additional tools (binutils, debuggers, programmers, simulators)

* Patches (supporting newer devices, or for newer improvements to the target's code)

* Out-of-mainline gcc ports

Thus it is best if you say exactly which target(s) you are thinking of, so that you can get target-specific information.

You also need to tell us *why* you want to build a gcc toolchain. If you just want a gcc compiler for a given host and target, you're better off with a pre-built binary (possibly with paid support). If you want to go through the enlightening and entertaining process of building gcc and friends from scratch, be prepared to spend some time getting it to work (especially if you are using windows). Then there is the middle road of getting ready-to-build source tarballs, which are available from various places and for various host-target combinations.

.



Relevant Pages

  • Re: How do you make this Open Source work on Solaris ?
    ... The '-mt' option is not valid for gcc, ... *** Error code 1 ... make: Fatal error: Command failed for target `all-recursive' ...
    (comp.unix.programmer)
  • Re: Coldfire development on Linux host
    ... My preferred development host is a i586 PC running SUSE 10.0. ... The target CPU is a Coldfire MCF5407 or similar running raw ... I downloaded the CodeWarrior Linux Platform Evaluation suite from Freescale ... As for gcc, you can simply download the latest gcc source and compile it for cross development. ...
    (comp.arch.embedded)
  • Re: Why ./configure?
    ... > gcc knows how to create executables, I know that my gcc can do so, only ... > target platform and other conditions, which the author can not anticipate. ... > compile and link the project. ... > system is represented by the target specific libraries, ...
    (comp.os.linux.development.apps)
  • Re: Compiler for 16-bit DOS
    ... I would like to use gnu gcc or other free compiler to compile my programs. ... As far as I can tell, recent gcc doesn't support DOS as target, and DJGPP a) targets i386 in protected mode and b) runs in DOS. ... Now if only I could get gcc to compile for 16-bit DOS, I could try it on my real target, the i186 system. ...
    (comp.os.msdos.programmer)
  • Compiler for 16-bit DOS
    ... I would like to use gnu gcc or other free compiler to compile my programs. ... As far as I can tell, recent gcc doesn't support DOS as target, and DJGPP a) targets i386 in protected mode and b) runs in DOS. ... Now if only I could get gcc to compile for 16-bit DOS, I could try it on my real target, the i186 system. ...
    (comp.os.msdos.programmer)