3.6.6.16 Section-anchors Option

The -fsection-anchors option allows access of static objects to be performed relative to one symbol.

When enabled, this option might generate code that accesses multiple static objects as an offset from one base address, rather than accessing each object separately. Clearly, this optimization can only improve code size if more than one static object is defined in your program. Although this option is available for unlicensed compilers, it works best with level s optimizations (-Os), which are only available with a PRO license.