ILE C/C++ Programmer's Guide

How the ILE C/C++ Compiler Converts a Source File to a Target CCSID

When the TGTCCSID differs from the source file's CCSID, the ILE C compiler converts the source files to the TGTCCSID and processes files. This ensures that the target module and all it's character data components (for example, listing, string pool) are in the desired TGTCCSID. You can then develop in one character set and target another. The argument defaults to the source file's character set so the default behavior is backward compatible (with the exception of 290, 930 and 5026).

Note:
C++ language onlyC++ converts only the string literals (not the source) to the TGTCCSID.

Providing support for more source character sets, increases the NLS usability of the compilers. CCSIDs 290, 930 and 5026 are now supported. The TGTCCSID parameter provides solutions to more complex NLS programming issues. For example, several modules with different module CCSIDs may be compiled from the same source by simply recompiling the source with different TGTCCSID values.


[ Top of Page | Previous Page | Next Page | Table of Contents ]