### /SEGMENTS Linker Option

Syntax: | Default:
/SE[GMENTS]:number | /SE:256

Use /SEGMENTS to set the number of sections a program can have. You can set number to any value in the range 1 to 16375, in decimal, octal, or hexadecimal format.

For each section, the linker must allocate space to keep track of section information. By using a relatively low limit as a default (256), the linker is able to link faster and allocate less storage space.

When you set the limit higher than 256, the linker allocates more space for section information. This results in slower linking, but allows you to link programs with a large number of sections.

For programs with fewer than 256 sections, you can improve link time and reduce linker storage requirements by setting number to the actual number of sections in the program.

Summary of Linker Options