22.12.2012 Views

z/TPF Program Management - IBM

z/TPF Program Management - IBM

z/TPF Program Management - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

Compiler overview for z/<strong>TPF</strong> C/C++ support<br />

The z/<strong>TPF</strong> system requires three compilers to support C/C++ language programs:<br />

an ELF-compatible compiler (GNU compiler collection (GCC) or Systems/C and<br />

Systems/C++), the <strong>IBM</strong> z/OS C/C++ compiler, and a native Linux C/C++ compiler.<br />

The executable and linking format (ELF)-compatible compiler is required to build the<br />

online z/<strong>TPF</strong> system and user application programs. C/C++ language programs that<br />

are written for the z/<strong>TPF</strong> system must be compiled and linked in an ELF format. To<br />

do this, the z/<strong>TPF</strong> system uses an ELF-compatible compiler, also known as a<br />

cross-compiler, that emits object code specifically for the z/<strong>TPF</strong> system. The<br />

ELF-compatible compiler runs on Linux and produces object code that is a<br />

specialization of ELF for the z/<strong>TPF</strong> system. The ELF-compatible compiler is<br />

required because you cannot use the native compiler that comes with Linux to build<br />

z/<strong>TPF</strong> applications that are written in C/C++ language.<br />

The ELF-compatible compiler links to the GNU C library (glibc) and the GNU<br />

standard C++ library (libstdc++). Each ELF-compatible compiler is associated with a<br />

specific version of the libstdc++ library that it links to. For more information, see<br />

Required z/<strong>TPF</strong> and z/<strong>TPF</strong>DF product software.<br />

The <strong>IBM</strong> z/OS C/C++ compiler is required to build offline utilities, such as tpfldr<br />

and db2pp, on z/OS. It is not used to build programs that are loaded to the online<br />

system.<br />

A native Linux C/C++ compiler is required to build offline utilities, such as tpfobjpp<br />

and offldr, on Linux. It is not used to build programs that are loaded to the online<br />

system.<br />

For more information about the z/<strong>TPF</strong> ELF-compatible compilers, see “GCC<br />

ELF-compatible compilers” and “Systems/C and Systems/C++ ELF-compatible<br />

compilers” on page 34.<br />

GCC ELF-compatible compilers<br />

For the GNU compiler collection (GCC) executable and linking format<br />

(ELF)-compatible compilers, the z/<strong>TPF</strong> system supports a staged approach to<br />

upgrading your compiler.<br />

In other words, you can have a combination of compiled product and application<br />

code levels:<br />

v Continue with all product and application code compiled with GCC V4.1.<br />

v Compile all product code with GCC V4.6, with some applications compiled with<br />

GCC V4.6 and some applications compiled with GCC V4.1.<br />

v Compile all product and application code with GCC V4.6.<br />

All of the combinations assume that you installed all of the compiler-related APARs<br />

for the z/<strong>TPF</strong> system.<br />

GCC V4.6 only<br />

Using the GCC V4.6 compiler exclusively involves installing the compiler-related<br />

APARs, getting and installing the GCC V4.6 compiler, and rebuilding your product<br />

and application code with the GCC V4.6 compiler.<br />

© Copyright <strong>IBM</strong> Corp. 2005, 2012 33

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!