21.02.2013 Views

System i: Programming i5/OS PASE - IBM

System i: Programming i5/OS PASE - IBM

System i: Programming i5/OS PASE - 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.

Related concepts<br />

“Planning for <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong>” on page 6<br />

<strong>i5</strong>/<strong>OS</strong> Portable Application Solutions Environment (<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong>) provides an AIX runtime environment<br />

on the <strong>i5</strong>/<strong>OS</strong> operating system so that you can port your AIX applications to the system with minimal<br />

effort.<br />

Related information<br />

<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> environment variables<br />

Compiling your AIX source<br />

You can install one of the AIX compiler products that support installation in <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> to compile your<br />

programs in the <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> environment.<br />

When your program uses AIX interfaces only, you can compile with any required AIX headers and link<br />

with AIX libraries to prepare binary files for <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong>. Keep in mind that <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> does not<br />

support applications that are statically bound with AIX system-supplied shared libraries.<br />

<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> programs are structurally identical to AIX programs for PowerPC.<br />

<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> (option 33 of the operating system) does not include a compiler. You use an AIX system to<br />

compile <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> programs, or you can optionally install one of the AIX compiler products that<br />

support installation in <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> to compile your programs in the <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> environment.<br />

Using AIX compilers on the <strong>System</strong> p platform<br />

You can build <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> programs using any AIX compiler and linker that generate output that is<br />

compatible with the AIX application binary interface (ABI) for PowerPC. <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> provides instruction<br />

emulation support for binary files that use POWER ® architecture instructions that do not exist in<br />

PowerPC (except for <strong>IBM</strong> POWER instructions for cache management).<br />

Using AIX compilers in <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong><br />

<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> supports the installation of the following separately available AIX compilers in the <strong>i5</strong>/<strong>OS</strong><br />

<strong>PASE</strong> environment:<br />

v <strong>IBM</strong> XL C/C++ for AIX<br />

v <strong>IBM</strong> XL C for AIX<br />

v <strong>IBM</strong> XL Fortran for AIX<br />

Using these products, you can develop, compile, build, and run your <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> applications entirely<br />

within the <strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> environment on your system.<br />

Development tools<br />

Many development tools that you use on AIX (for example, ld, ar, make, yacc) are included with <strong>i5</strong>/<strong>OS</strong><br />

<strong>PASE</strong>. Many AIX tools from other sources (for instance, the open-source tool gcc) can also work in <strong>i5</strong>/<strong>OS</strong><br />

<strong>PASE</strong>.<br />

The <strong>IBM</strong> Tools for Developers for <strong>i5</strong>/<strong>OS</strong> PRPQ (5799-PTL) also contains a wide array of tools to help<br />

with the development, building, and porting of <strong>i5</strong>/<strong>OS</strong> applications. For more information about this<br />

PRPQ, see the <strong>IBM</strong> Tools for Developers for <strong>i5</strong>/<strong>OS</strong> Web site.<br />

Compiler notes for handling of pointers<br />

v The xlc compiler provides limited support for 16-byte alignment (for type long double) by using the<br />

combination of -qlngdbl128 and -qalign=natural. Type ILEpointer requires these compiler options to<br />

<strong>i5</strong>/<strong>OS</strong> <strong>PASE</strong> 9

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

Saved successfully!

Ooh no, something went wrong!