C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Data Size Threshold (/Gt)
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Syntax:  /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.
 
     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.
 
     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.
 
     You can use the /Gt option only with compact-, large-, and
     huge-model programs since tiny-, small-, and medium-model programs
     have only one data segment. The option is particularly useful with
     programs that have more than 64K of initialized static and global
     data in small data items.
     See also: Quick data model (Gx)
                                    -♦-