slice2objc(1)

slice2objc1

The slice to objective-c compiler.

Usage

slice2objc [options] [files]

Overview

slice2objc compiles Slice files to Objective-C. The macro __SLICE2OBJC__ is defined during this compilation.

Full documentation for slice2objc is available online at:
https://doc.zeroc.com/ice/latest/language-mappings/objective-c-mapping/client-side-slice-to-objective-c-mapping/slice2objc-command-line-options

Options

-h, --help

Displays help message.

-v, --version

Displays the compiler version.

-DNAME

Defines the preprocessor symbol NAME.

-DNAME=DEF

Defines the preprocessor symbol NAME with the value DEF.

-UNAME

Undefines the preprocessor symbol NAME.

-IDIR

Add the directory DIR to the search path for #include directives.

-E

Print the preprocessor output on stdout.

--output-dir DIR

Place the generated files into directory DIR.

-d, --debug

Print debug information showing the operation of the Slice parser.

--depend

Print dependency information to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.

--depend-xml

Print dependency information in XML format to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.

--depend-file FILE

Directs dependency information to the specified file. The output format depends on whether --depend or --depend-xml is also specified.

--validate

Checks the provided command-line options for correctness, and does not generate any code.

--include-dir DIR

Modifies #include directives in source files to prepend the path name of each header file with the directory DIR.

Releases

5 releases since Debian 10 (Buster); the text changed 1 time.

  1. 10
  2. 11–Arch

From zeroc-ice 3.7.10-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.