Use /SEGMENTS to set the number of sections that a program can have. You can set number to any value in the range 1 to 16375, in decimal, octal, or hexadecimal format.
| /SEGMENTS option syntax |
|---|
|
Default is: /SEGMENTS:256
Abbreviation is: /SE
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 section limit higher than 256, the linker allocates more space for section information. This results in slower linking, but allows you to link programs that have 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.
related tasks
Specifying linker options