Ice provides a separate Slice compiler for each language mapping, as shown below:
Language |
Compiler |
|---|---|
C++ |
|
Java |
|
C# |
|
Objective-C |
|
Python |
|
Ruby |
|
PHP |
The Slice compilers.
The compilers share a similar command-line syntax:
{zcode}
<compiler-name> [options] file...
{zcode} |
Regardless of which compiler you use, a number of command-line options are common to the compilers for any language mapping. (See the appropriate language mapping chapter for options that are specific to a particular language mapping.) The common command-line options are:
-h, --help-v, --version-DNAMENAME.-DNAME=DEFNAME with the value DEF.-UNAMENAME.-IDIRDIR to the search path for #include directives.-Estdout.--output-dir DIRDIR.-d, --debug--iceIce for identifiers. Use this option only when compiling the source code for the Ice run time.--underscoreThe Slice compilers permit you to compile more than a single source file, so you can compile several Slice definitions at once, for example:
{zcode}
slice2cpp -I. file1.ice file2.ice file3.ice
{zcode} |