4.14.8. Building an image with separate command invocations

To build an image with separate compiler, assembler, and linker commands:

  1. For C and C++ sources, specify the option -c to force the compiler to compile only, and not link the generated object files. For example:

    armcc -c f1.c f2.c
    

    For more details, see the RealView Developer Kit v2.2 Compiler and Libraries Guide.

    Note

    For assembler sources, the assembler (armasm) only generates object files.

  2. Specify the object files generated in step 1 as part of the linker command. By default, the linker generates an image with the name __image.axf.

    To specify your own image name, use the --output image_name option. For example:

    armlink f1.o f2.o --output myimage.axf
    

    For more details, see the RealView Developer Kit v2.2 Linker and Utilities Guide.

Copyright © 2005, 2006 ARM Limited. All rights reserved.ARM DUI 0276B
Non-Confidential