Using Teraspace for Storage
Using Teraspace for Storage
A program’s storage model determines the type of storage used for automatic, static and constant storage.
By default, compilers also use heap storage interfaces that match the storage model. However, some compilers allow the type of heap storage to be chosen independently of a program’s storage model.
The ILE C and C++ compilers provide the TERASPACE (*YES *TSIFC) create command option to
allow the use of teraspace versions of heap storage interfaces from single-level store programs
without source code changes. For example, malloc() is mapped to
_C_TS_malloc().
The ILE RPG compiler allows the type of heap storage to be explicitly set, independent of the storage model, using the ALLOC keyword on the Control Specification.
See the ILE C/C++ Programmer’s Guide or ILE RPG Programmer’s Guide for details on these compiler options.