Services and Modeling for Embedded Software Development
Embecosm divider strip
Prev  Next

7.2.  Changes to GCC

7.2.1. Adding Machine Specific Options for Newlib
7.2.2. Updating Spec Definitions

In general GCC will work with newlib with no change. All that is needed is to include the BSP library on the command line.

However it is convenient to modify GCC so that it picks up the BSP automatically. This is particularly useful when newlib has been installed in a custom location (see Section 7.1).

This is achieved by adding machine specific options to GCC, and modifying the Spec definitions to pick up the newlib libraries when the relevant option is in effect.

All the relevant files are found in the gcc/config/target directory of GCC. For the 32-bit OpenRISC 1000  this is gcc/config/or32.

Embecosm divider strip