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
-D
NAME
NAME
.-D
NAME=DEF
NAME
with the value DEF
.-U
NAME
NAME
.-I
DIR
DIR
to the search path for #include
directives.-E
stdout
.--output-dir
DIR
DIR
.-d, --debug
--ice
Ice
for identifiers. Use this option only when compiling the source code for the Ice run time.--underscore
The 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} |