EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

About GNU Toolchain

Started by huxu...@gmail.com March 31, 2008
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.
<huxuelei630@gmail.com> wrote in message 
news:5b2a22dc-4cfa-4c90-bb84-dc80b18e8eb5@s19g2000prg.googlegroups.com...
> 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.
Do you want to do this as a learning exercise - or just to get your hands on a particular built toolchain? If the latter then which platform are you interested in? You will probably be able to download a pre-built version and save yourself the trouble. -- Regards, Richard. + http://www.FreeRTOS.org & http://www.FreeRTOS.org/shop 17 official architecture ports, more than 5000 downloads per month. + http://www.SafeRTOS.com Certified by T&#4294967295;V as meeting the requirements for safety related systems.
huxuelei630@gmail.com 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.
Le Mon, 31 Mar 2008 01:16:53 -0700, huxuelei630@gmail.com a &eacute;crit:

> 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.
Hi ! Outside the GNU compilers and binutils, which are sometimes fairly easy to construct, it happens that the real problems come with (for example) the implementation of the Standard C/C++ Library for a particular architecture ... Some programmers tend to forget that the code quality depends heavily on the quality of libraries. In conclusion, I would say that the important point to consider is: Besides tools (gcc, gdb, binutils), libraries are in production state for this architecture or not ? -- HBV

The 2024 Embedded Online Conference