< Previous PageNext Page >

Using Cross-Compilers

Cross-compilers allow you to build BlackDog applications directly on your x86-based Linux development workstation without the use of an emulation environment or special hardware. In order to use the cross-compilers, you must install the packages supplied on the DVD, located in either the /cross/rpm directory or the /cross/deb directory.

Note: Cross-compilers are not supported on a Windows development workstation.

Installing the Cross-compilers on an RPM based system (Redhat, Fedora, SUSE)

  1. Change directories to the SDK_INSTALL_PATH/cross/rpm
  2. Run 'rpm -Uvh *.rpm'

Installing the Cross-compilers on a DEB based system (Debian, Ubuntu)

  1. Change directories to the SDK_INSTALL_PATH/cross/deb
  2. Run 'dpkg -i *.deb'

Building your application with the Cross-compilers

In order to build your application with the cross-compiler, you must use the GNU tools prefixed with powerpc-linux-. For example, the standard C compiler cc/gcc should be replaced with powerpc-linux-gcc, and the standard C++ compiler, c++, should be replaced with powerpc-linux-c++.

 

< Previous PageNext Page >
Copyright © Realm Systems, Inc. 2003-2005.
All rights reserved.