### Tiled Memory Management Functions (OS/2)

Use the tiled memory management functions to allocate and free memory from the run-time's tiled memory heap. If you have objects that can be accessed by 16-bit code, you should store them in tiled memory. Tiled memory does not cross 64K boundaries, as long as the object is smaller than 64K. Objects larger than 64K are aligned on 64K boundaries, but will also cross 64K boundaries.

When you use the /Gt compiler option, all calls to the regular memory management functions are mapped to their tiled versions. You can also call the tiled versions explicitly.

Parenthesize the calls to the regular memory management functions, if you do not want them to be mapped to their tiled versions.

The names of the tiled versions are prefixed by _t (for "tiled"), for example, _tmalloc, and they are defined in <malloc.h> and <stdlib.h> .

The functions provided are:

- _tcalloc
- _tfree
- _theapmin
- _tmalloc
- _trealloc

Memory Management Functions

Change the Default Heap

Differentiating between Memory Management Functions