3.2.5. Code example

For details of writing position-independent code, see the PIC-PID example provided with RealView Development Suite in the main examples directory, that is in install_directory\RVDS\Examples\picpid.

This example consists of a kernel at a fixed address in ROM, together with a collection of application modules that extend kernel functionality. Application modules are loaded into memory following the kernel. However, the address where a module might be loaded is unknown when the module is linked. Therefore, modules must be position-independent (ROPI, PIC).

The example includes source code, a make file, batch files, and a detailed description of how to compile and link the different modules (see readme.txt).

Copyright © 2002-2006 ARM Limited. All rights reserved.ARM DUI 0203G
Non-Confidential