/Gt Compiler Option (OS/2)

Syntax Default
/Gt[+|-] /Gt-

/Gt determines whether OS/2 tiled memory is enabled for the module being built and whether the target is compatible with 16-bit functions.

By default, tiled memory compatibility is disabled.

Set /Gt+ if your code calls or is called back from existing 16-bit code. All variables will be stored so that they can be passed to 16-bit functions. Static and external variables are mapped into 16-bit segments. Variables larger than 64K are aligned on, but may still cross, 64K boundaries. The memory management functions (malloc, calloc, realloc and free) are mapped to their tiled versions (_tmalloc, _tcalloc, _trealloc and _tfree).



Summary of Compiler Options
Tiled Memory Management Functions