/Gt (Set Data Threshold)

Option

/Gt[[number]]

The /Gt option causes all data items other than constant data whose size is greater than or equal to number bytes or that are assumed to be far (data items that are not initialized or are marked as extern are assumed to be far) to be allocated in a new data segment. For related information, see the /Gx option on topic .

If you specify number, it must follow the /Gt option immediately with no intervening spaces. If you use /Gt without a number, the default threshold value is 256. If you don't use the /Gt option, the default threshold value is 32,767.

Use this option with programs that have more than 64K of initialized static and global data in small data items.

By default, the compiler allocates all static and global data items within the default data segment in the tiny, small, and medium memory models. In compact-, large-, and huge-model programs, only initialized static and global data items are assigned to the default data segment.

Note:

You can use the /Gt option only if you are creating a compact-, large-, or huge-model program because tiny-, small-, and medium-model programs have only one data segment.