Science Fair Projects Ideas - Compiler

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Cross compiler

A cross compiler is a compiler capable of creating executable code for another platform than the one on which the cross compiler is run. Such a tool is handy when you want to compile code for a platform that you don't have access to, or because it is inconvenient or impossible to compile on that platform (as is the case with embedded systems.)

Compiling a gcc cross compiler

gcc is a free cross compiler that supports dozens of platforms and a handful of languages. However, due to limited volunteer time and the huge amount of work it takes to maintain working cross compilers, in many releases some of the cross compilers are broken.

gcc relies upon the binaries of binutils for the targeted platform to be available. Especially important is as - the GNU Assembler . Therefore, binutils first has to be compiled correctly with the switch --target=some-target sent to the configure script . gcc also has to be configured with the same --target option. Then gcc can be compiled as normal provided that the tools binutils creates are available in the path. On unix-like OS:es with bash, that can be accomplished with the following:

 PATH=/path/to/binutils/bin:$PATH make

Cross compiling gcc requires that a portion of the C standard library is available for the targetted platform on the host platform. Atleast the crt0 , ... components of the library has to be available in some way. You can either choose to compile the full C library but it can be to large for many platforms. The alternative is then to use newlib, which is a small C library containing just the most essential components required to get C source code compiled. To configure gcc with newlib use the switch --with-newlib to the configure script.

External links

10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice