Ice provides a separate Slice compiler for each language mapping, as shown below:

Language

Compiler

C++

slice2cpp

Java

slice2java

C#

slice2cs

Objective-C

slice2objc

Python

slice2py

Ruby

slice2rb

PHP

slice2php

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:

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}

See Also