H-Series Application Migration Guide (H06.03+)

The TNS/E Native Development Environment
H-Series Application Migration Guide429855-006
2-16
New Memory Block Functions
New Memory Block Functions
The following new memory block functions are defined:
New Memory Allocation Function
CRE has a new memory allocation function: malloc_pages(). The behavior of
malloc_pages is the same as malloc(), except that the allocated memory is automatically
aligned to a page boundary. The number of bytes requested for the space is rounded
up to a multiple of the page size so that the allocated space always occupies one or
more complete pages.
Developing TNS/R Native Programs on
H-Series Systems
Beginning with the H06.05 RVU, TNS/R development tools are supported on H-series
systems. Using these tools, you can compile and link TNS/R native programs on an
H-series system, then transfer the object files to a G-series system for execution. The
TNS/R object files cannot be executed on an H-series system. You can, however, use
Visual Inspect on a TNS/E system to debug TNS/R snapshot files produced on a
TNS/R platform. Table 2-6 shows the TNS/R tools that are available on H-series
systems.
wmemchr Searches for a wide character in a block of memory
wmemcmp Compares two blocks of wide-character memory
wmemcpy Copies a block of wide-character memory
wmemmove Moves a block of wide-character memory
wmemset Initializes a block of wide-character memory to a specified character
value
Table 2-6. TNS/R Tools in H-Series
Tool Description
NMC TNS/R Guardian native C compiler
NMCPLUS TNS/R Guardian native C++ compiler
PTAL TNS/R native TAL compiler
NMCOBOL TNS/R Guardian native COBOL compiler
c89 -Wtarget=tns/r,
-WRVU=G06.nn
TNS/R OSS C/C++ compilation
nmcobol TNS/R OSS COBOL compiler
ld TNS/R native PIC linker