--api, --no_api

Enables and disables API section sorting. API sections are the sections that are called the most within a region. In large region mode these sections are extracted from the region and then inserted closest to the hotspots of the calling sections. This minimises the number of veneers generated.

Show/hideDefault

The default is --no_api. The linker automatically switches to --api if at least one execution region contains more code than the smallest inter-section branch. The smallest inter-section branch depends on the code in the region and the target processor:

32Mb

Execution region contains only ARM.

16Mb

Execution region contains Thumb, 32-bit Thumb is supported.

4Mb

Execution region contains Thumb, no 32-bit Thumb support.

Show/hideSee also

Concepts

Using the Linker:

Reference
Copyright © 2008, 2011-2012 ARM. All rights reserved.ARM DUI 0458C
Non-ConfidentialID062912