Services - tools - models - for embedded software development
Embecosm divider strip
Prev  Next

3.2.2.  Configuring GCC

Like binutils, GCC is built in a separate build directory. It is configured to create just a cross-compiler for C.

mkdir builddir-gcc
cd builddir-gcc
../gcc-3.4.4/configure --target=or32-uclinux --prefix=/opt/or32 \
    --enable-languages=c
	

The configuration will automatically assume that the various binutils utilities are prefixed by the target name, so finds or32-uclinux-as as the assembler and or32-uclinux-ld as the linker, so long as they are on the search path (in this example /opt/or32/bin).

[Note]Note

These instructions are simpler than those given on the MOF and OpenCores websites. At this stage the objective is a vanilla cross-compiler, without reference to the Linux operating system or uClibc libraries. No additional configuration flags are required.

Embecosm divider strip