Instructions for Cross-compiling on PowerPC

[03-Mar-2010, KAB: Just a side note that developers wanting to compile online application code within our SRT development environment should use slightly different instructions than what are described on this page. Preliminary instructions for cross-compiling applications are available here and more complete instructions will be provided soon.]

The DCMApplication package requires cross-compilation on an x86 platform to create the libraries and binaries appropriate for the PowerPC platform of the DCM. The DCM uses a MPC8347EVVAJF microcontroller with an embedded PowerPC e300 processor core. The e300 core is an enhanced PowerPC 603e core.

Documentation for cross-compiling to the DCM processor platform is given in Nova DocDB #4248. The crosstool third-party package has been used to set up a cross compiler under ups on novatest01. As described in DocDB #4248, the cross compiler may be accessed using:

setup nova_crosscompiler -q powerpc-603

This makes visible the compiler:


for cross-compiling. Alternatively:

setup nova_crosscompiler -q full:powerpc-603

can be used to replace gcc with the powerpc-603-linux-gnu-gcc version. gcc -v then yields:

kasahara@novatest01>gcc \-v
Using built-in specs.
Target: powerpc-603-linux-gnu
Configured with: /home/anorman/CrossCompilers/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/configure --target=powerpc-603-linux-gnu --host=x86_64-host_unknown-linux-gnu --prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc-603-linux-gnu --with-cpu=603 --enable-cxx-flags=-mcpu=603 --with-headers=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc-603-linux-gnu/powerpc-603-linux-gnu/include --with-local-prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc-603-linux-gnu/powerpc-603-linux-gnu --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 4.1.0