8.11 --arm_linux_paths

Enables you to build code for ARM Linux.

Usage

You can use this option after you have configured the tools for use with ARM Linux.

This is a compiler option only. It follows the typical GCC usage model, where the compiler driver directs linkage and selection of standard system object files and libraries.

This option can also aid migration from versions of RVCT earlier than RVCT v4.0. After you have created a configuration file using --arm_linux_configure, you can modify an existing build by replacing the list of standard options and search paths with the --arm_linux_paths option. That is, --arm_linux_paths can replace:

  • all of the default options listed for --arm_linux

  • Header paths.

  • Library paths.

  • Standard libraries.

Restrictions

You must specify the location of the configuration file by using --arm_linux_config_file=filename.

Examples

Compile and link application code:

armcc --arm_linux_paths --arm_linux_config_file=my_config_file -o hello -O2 -Otime -g hello.c

Compile a source file source.c for use in a shared library:

armcc --arm_linux_paths --arm_linux_config_file=my_config_file --apcs=/fpic -c source.c

Link two object files, obj1 and obj2, into a shared library called my_shared_lib.so, using the compiler:

armcc --arm_linux_paths --arm_linux_config_file=my_config_file --shared -o my_shared_lib.so obj1.o obj2.o

Non-ConfidentialPDF file icon PDF versionARM DUI0472M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.