Skip to main content


developerWorks  >  Linux | Multicore acceleration  >

Build a GCC-based cross compiler for Linux

developerWorks

Level: Intermediate

Martin Brown (questions@mcslp.com), Freelance Writer and Consultant

22 Feb 2005

Register now or sign in using your IBM ID and password.

Get step-by-step instructions for building a cross-compiler so that you can build and develop applications for an alternative platform. Cross-compilers can be useful in many different situations, such as when you develop applications for embedded platforms.

Prerequisites

To build a cross-compiler, you need a basic knowledge of the build process of a typical UNIX open source project, some basic shell skills, and a lot of patience.


System requirements

You'll need JavaScript enabled in your browser. To follow along in this tutorial, you'll need:

  • A working C compiler (gcc is generally a good idea). A C compiler is supplied with most Linux/UNIX-based operating systems.
  • The source code for the various tools used to build the cross-compiler. You can download GNU tools from GNU. (Use a local mirror where possible.)
  • A copy of the header files for your target platform. For a Linux target, use the generic Linux kernel headers available from Kernel.org.


Duration

More than two hours


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


My developerWorks needs you!

Connect to your technical community