O'Reilly logo

Embedded Software Development with eCos™ by Anthony J. Massa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

STEP 8

Next, we build the GNU C/C++ Compiler. Then, we create a temporary directory for the GNU C/C++ Compiler build with the command:

$ mkdir –p /tmp/build/gcc

We should verify that the directory D:\cygwin\tmp\build\gcc is created. Change to the directory we just created using the command:

$ cd /tmp/build/gcc

Now we can configure to build the GNU C/C++ Compiler using the command:

$ /src/gcc/gcc-2.95.2a/configure –-target=i386-elf \
  --prefix=/tools \
  --exec-prefix=/tools/H-i686-pc-cygwin \
  --with-gnu-as –-with-gnu-ld –-with-newlib \
  -v 2>&1 | tee configure.out

The output messages from the GNU C/C++ Compiler configuration process are contained in the file configure.out located in the D:\cygwin\tmp\build\gcc subdirectory should you need to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required