L166 User's Guide

NOSORTSIZE Linker Directive

Abbreviation

NOSO

Arguments

None.

Default

Sections are sorted by size before being located.

µVision

Options — L166 Misc — Misc Controls.

Description

By default, the linker sorts sections by size (largest to smallest) before locating them. This ensures fewer memory gaps and reduces overall memory consumption.

The NOSORTSIZE directive disables segment size sorting. Use of this directive may cause you program size to increase.

Even when using the NOSORTSIZE directive, the linker processes segments according their type as explained in Locating Sections.

Example
L166 file1.obj NOSORTSIZE