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

The TNS/E Native Development Environment
H-Series Application Migration Guide429855-008
2-17
New Memory Allocation Function
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.
In addition to these tools, all required TNS/R native run-time libraries and header files
are also available on the H-series. This enables you compile and link TNS/R native
programs on an H-series system, then deploy and execute them on the desired TNS/R
system.
TNS/R compilation in H-series is supported only for G06.20 and later G-series RVUs.
The H-series TNS/R compilers and tools have all the features of the G06.20 and later
G-series products. The compilers and tools have the same functionality as the G06.27
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
nld TNS/R native non-PIC linker
noft TNS/R native object file utility
Visual Inspect Use the H-series version to debug TNS/R snapshot files on a
TNS/E platform