The compiler options described in section "Implementation of the Java code" of chapter "Implementation of a native method in C" must be used when compiling the C/C++ parts.
The HotSpot™ VM handles overflow events itself. To prevent interrupts occurring you must also specify:
-K no_integer_overflow
This option must be set for the main program.
The C/C++ Compiler as of Version 3.1A20 has been changed (and is therefore incompatible) so that if a main program is compiled with this compiler the argument strings are automatically passed as ASCII strings if the -K literal_encoding_ascii or -K literal_encoding_ascii_full option was set. Explicit conversion with, for example, _e2a() is not needed. If an existing main program already performs this conversion and you do not want to change it, the following option must be specified for reasons of compatibility:
-K environment_encoding_ebcdic
The argument strings continue to be passed as EBCDIC strings.