slice2objc(1)
π slice2objc β the Slice-to-Objective-C compiler bestie
okay so you found the slice2objc(1) page in the General Commands Manual and you're like "what is this" β don't worry, I got you. This is the tool that takes your Slice files and turns them into Objective-C. That's the whole vibe. π¦
β¨ NAME β¨
slice2objc β literally the Slice to Objective-C compiler. that's her. that's the name. π
πΈ SYNOPSIS πΈ
slice2objc [options] [files]
options first, files after, classic. no notes. π
π DESCRIPTION π
slice2objc compiles your Slice files into Objective-C. periodt. and while it's doing that compilation, the macro __SLICE2OBJC__ gets defined β so if you're doing conditional stuff, that's your sign. β
the full documentation for slice2objc is living online at:
https://doc.zeroc.com/ice/latest/language-mappings/objective-c-mapping/client-side-slice-to-objective-c-mapping/slice2objc-command-line-options
go read it, it's giving thorough. πβ¨
π OPTIONS π
-h,--helpβ shows you the help message. the "hello, here's what I do" moment. π«Ά-v,--versionβ prints the compiler version. so you know exactly which one you're dealing with. π-DNAMEβ defines the preprocessor symbol NAME. π-DNAME=DEFβ defines the preprocessor symbol NAME, but this time you're giving it the value DEF. π-UNAMEβ undefines the preprocessor symbol NAME. un-defining. the opposite slay. π-IDIRβ adds the directory DIR to the search path for#includedirectives. so it knows where to go lookin. π-Eβ prints the preprocessor output on stdout. just the preprocessed goods, nothing else. β¨--output-dir DIRβ drops the generated files into directory DIR. very "put it in the folder" of it. π-d,--debugβ prints debug information showing what the Slice parser is doing. peak behind-the-scenes content. π--dependβ prints dependency information to standard output by default, or to the file you name with--depend-file. heads up bestie: no code is generated when you use this option. π--depend-xmlβ same deal but the dependency info comes out in XML format, to standard output by default or to the file from--depend-file. and again: no code is generated when this option is specified. π«--depend-file FILEβ sends dependency information to the specified FILE. the output format depends on whether--dependor--depend-xmlis also specified. pick your fighter. π₯--validateβ checks the command-line options you gave it for correctness, and generates absolutely no code. just vibes and verification. β--include-dir DIRβ modifies#includedirectives in source files so the path name of each header file gets the directory DIR prepended to it. glow-up for your include paths. π
π SEE ALSO π
your other slice besties, all in one place:
slice2cpp(1), slice2cs(1), slice2java(1), slice2js(1), slice2php(1), slice2py(1), slice2rb(1), slice2swift(1)
and that's the whole page, no cap. this came to you straight from the General Commands Manual, page slice2objc(1) β main character energy, iconic, and now you know her. go compile something gorgeous. πβ¨ππ¦π
π¦ where this page comes from
- arch rolling: zeroc-ice 3.7.10-3 Β· GPL-2.0-only AND LicenseRef-ICE
- debian bookworm: zeroc-ice-compilers 3.7.8-2.1+b1 Β· GPL-2.0+exceptions
- debian trixie: zeroc-ice-compilers 3.7.10-3.1 Β· GPL-2.0+exceptions
- ubuntu jammy: zeroc-ice-compilers 3.7.6-4ubuntu1 Β· GPL-2.0+exceptions
- ubuntu noble: zeroc-ice-compilers 3.7.10-2.1build1 Β· GPL-2.0+exceptions
- ubuntu questing: zeroc-ice-compilers 3.7.10-3.1
- ubuntu resolute: zeroc-ice-compilers 3.7.10-4build2 Β· GPL-2.0+exceptions
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms