Download WP10 -D10.7 User Guide
Transcript
OCERA User's Guide 171/235 February 2005 10.2) Cross Compilation for ARM/iPAQ 10.2.1) ARM Processor Because the hardware on ARM/iPAQ is different from most desktops, a cross-compiler capable of producing code for different platform is usually needed. Toolchains contain the neccessary tools to cross-compile code for that target machine. The easiest solution is to use GCC, which is open-source and can be obtained for free. a) Cross-Compiling for the iPAQ You can compile applications for the iPAQ by using an x86 Linux machine and crosscompiling. The cross toolchain works just like the standard native compiler, except that each of the tools is prefixed with "arm-linux-". For many programs, the crosscompiler can be invoked by running make as follows: make CC=arm-linux-gcc all If the make process calls other target-specific tools, then these also need to be specified: arm-linux-ld arm-linux-ar arm-linux-ranlib arm-linux-strip arm-linux-g++ arm-linux-as 10.2.2) Where to find a pre-built toolchain You can download the toolchain from handhelds site: Ocera User's Guide 171/235 Cross compilation