The /SEG Option

Option

/SE[[GMENTS]][[:number]]

The /SEG option sets the maximum number of program segments. The default without /SEG or number is 128. You can specify number as any value from 1 to 16,384 in decimal format or C-language notation. However, the number of segment definitions is constrained by available memory.

LINK must allocate some memory to keep track of information for each segment; the larger the number you specify, the less free memory LINK has to run in. A relatively low segment limit (such as the 128 default) reduces the chance that LINK will run out of memory. For programs with fewer than 128 segments, you can minimize LINK's memory requirements by setting number to reflect the actual number of segments in the program. If a program has more than 128 segments, however, you must set a higher value.

If the number of segments allocated is too high for the amount of memory available while linking, LINK displays the error message:

L1054 requested segment limit too high

When this happens, try linking again after setting /SEG to a smaller number.