Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


/SEGMENTS

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
Read syntax diagramSkip visual syntax diagram>>-/SEGMENTS:number--------------------------------------------><
 

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


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)