7.5.3. Modifying a project to support interworking

This section describes how to modify an existing project to support interworking.

Converting an ARM executable image to an ARM-Thumb interworking project

Follow these steps for each file in the Sources partition that you want to be compiled with tcc rather than armcc:

  1. Select the C file to be compiled into Thumb code from the Sources partition, for example, foo.c.

  2. Select Edit variable for foo.c from the Project menu. The Edit Variables dialog box is displayed.

  3. Type cc in the Name field and tcc in the Value field and click OK.

  4. Configure the Thumb compiler for interworking for this file:

    1. Select the C file from step 1.

    2. Select Tool Configuration for foo.c ? cc ? Set from the Project menu. The Compiler Configuration dialog is displayed.

    3. Click the Target tab and ensure that the check box for Arm/Thumb Interworking in the APCS3 Qualifiers group is selected.

    4. Modify the other APCS3 options if necessary.

    5. Click OK to save the configuration.

Note

To revert to armcc set the Value from step 3 to an empty string, and perform step 4 clicking Unset. This may remove any other per file options you had set.

Converting a Thumb executable image to a Thumb-ARM interworking project

Follow these steps for each file in the Sources partition that you want to be compiled with armcc rather than tcc:

  1. Select a C file in the partition Sources that is to be compiled into ARM code, for example, foo.c.

  2. Select Edit Variable for foo.c from the Project menu. The Edit Variables dialog is displayed.

  3. Type cc in the Name field, and armcc in the Value field.

  4. Configure the ARM compiler for interworking for this file:

    1. Select the C file from step 1.

    2. Select Tool Configuration for foo.c ? cc ? Set from the Project menu. The Compiler Configuration dialog is displayed.

    3. Click the Target tab and ensure that the check box for Arm/Thumb Interworking in the APCS3 Qualifiers group is selected.

    4. Modify the other APCS3 options if necessary.

    5. Click OK to save the configuration.

Note

To revert to tcc, set the Value from step 3 to an empty string, and perform step 4 clicking Unset. This may remove any other per file options you had set.

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0040D
Non-Confidential