9.4 --api, --no_api

Enables and disables API section sorting. API sections are the sections that are called the most within a region.

Usage

In large region mode the API sections are extracted from the region and then inserted closest to the hotspots of the calling sections. This minimises the number of veneers generated.

Default

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 code and the processor supports Thumb-2 technology.
4MB
Execution region contains Thumb code and the processor does not support Thumb-2 technology.
Related concepts
3.6 Linker-generated veneers
Related reference
9.63 --largeregions, --no_largeregions
Non-ConfidentialPDF file icon PDF versionARM DUI0377G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.