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:
<compiler-name> [options] file...
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
Displays a help message.
-v, --version
Displays the compiler version.
-D
NAME
Defines the preprocessor symbolNAME
.
-D
NAME=DEF
Defines the preprocessor symbolNAME
with the valueDEF
.
-U
NAME
Undefines the preprocessor symbol {NAME
.
-I
DIR
Add the directoryDIR
to the search path for#include
directives.
-E
Print the preprocessor output onstdout
.
--output-dir
DIR
Place the generated files into directoryDIR
.
-d, --debug
Print debug information showing the operation of the Slice parser.
--ice
Permit use of the normally reserved prefixIce
for identifiers. Use this option only when compiling the source code for the Ice run time.
--underscore
Permit use of underscores in Slice identifiers.
The Slice compilers permit you to compile more than a single source file, so you can compile several Slice definitions at once, for example:
slice2cpp -I. file1.ice file2.ice file3.ice
See Also