UNICON(1)
π UNICON(1) β interpret or compile Unicon programs
okay bestie, welcome to the General Commands Manual page for UNICON(1). This is the whole lore for unicon, plus the versions of icont and iconc that come with it. Strap in, itβs giving compiler-core but make it cute. π
πΈ NAME πΈ
unicon β interpret or compile Unicon programs. Thatβs the whole vibe. β¨
β¨ SYNOPSIS β¨
unicon [ option ... ] file ... [ -x arg ... ]
icont [ option ... ] file ... [ -x arg ... ]
iconc [ option ... ] file ... [ -x arg ... ]
Yeah bestie, those three lines are the main-character energy. π«Ά
π¦ DESCRIPTION π¦
okay so the programs unicon, icont and iconc convert Unicon and Icon source programs into executable form. By default unicon, like icont, translates quickly and provides interpretive (virtual machine) execution. Unicon with the -C option uses iconc, which takes longer to compile but produces programs that execute faster. icont and iconc for the most part can be used interchangeably. Unicon is a superset that supports Icon programs, while adding classes, packages, and various other features. iconic behavior, honestly. π
This manual page describes unicon, and the versions of icont and iconc that come with unicon. This page is gratefully based on the Icon Project manual page for icon. Where there are differences in usage between unicon, icont and iconc, these are noted. iykyk π
π File Names
Files whose names end in .icn are assumed to be Unicon source files. The .icn suffix may be omitted; if it is not present, it is supplied. The character - can be used to indicate an Unicon source file given in standard input. Several source files can be given on the same command line; if so, they are combined to produce a single program. group project, but it actually compiles π«Ά
The name of the executable file is the base name of the first input file, formed by deleting the suffix, if present. stdin is used for source programs given in standard input. no cap, thatβs the naming rule. β¨
π Processing
As noted in the synopsis above, unicon, icont and iconc accept options followed by file names, optionally followed by -x and arguments. If -x is given, the program is executed automatically and any following arguments are passed to it. auto-run era π₯
β¨ unicon
The processing performed by unicon consists of class and package preprocessing followed by invocation of icont (or iconc, if -C is given) to produce code and/or executable output. preprocessing first, then the real work.
π icont
The processing performed by icont consists of two phases: translation and linking. During translation, each Icon source file is translated into an intermediate language called ucode. A ucode file is produced for each source file, with a base name taken from the source file and the suffix .u. During linking, one or more ucode files are combined to produce a single icode file. The ucode files are deleted after the icode file is created. translation to linking pipeline, slay π
Processing by unicon or icont can be terminated after translation by the -c option. In this case, the ucode files are not deleted. The names of .u files from previous translations can be given on the unicon or icont command line. These files are included in the linking phase after the translation of any source files. Ucode files that are explicitly named are not deleted. keep your .u files if you asked for them, bestie. π
π₯ iconc
The processing performed by iconc consists of two phases: code generation and compilation and linking. The code generation phase produces C code, consisting of a .c and a .h file, with the base name of the first source file. These files are then compiled and linked to produce an executable binary file. The C files normally are deleted after compilation and linking. C code era, very main character. π
Processing by iconc can be terminated after code generation by the -c option. In this case, the C files are not deleted. again: -c means βstop here, donβt delete my intermediate files.β β¨
π OPTIONS π
The following options are recognized by unicon, icont, and iconc:
-cβ Stop after producing intermediate files and do not delete them (uniconandicontonly).-efile β Redirect standard error output to file.-fs β Enable full string invocation.-oname β Name the output file name.-sβ Suppress informative messages. Normally, both informative messages and error messages are sent to standard error output.-tβ Arrange for&traceto have an initial value of-1when the program is executed and foriconcenable debugging features.-uβ Issue warning messages for undeclared identifiers in the program.-vi β Set verbosity level of informative messages to i.-Eβ Direct the results of preprocessing to standard output and inhibit further processing.
those are the shared options, bestie. now the special ones π
The following options are recognized only by unicon:
-Cβ Haveunicongenerate code usingiconcinstead oficont.-versionβ Print the version of Unicon and exit.-featuresβ Print the features compiled into this implementation of Unicon and exit.
very βwhatβs in this build?β of it all π
The following additional options are recognized only by unicon and icont:
-Bβ Bundle a copy of theiconxVM into the executable.-Gβ Bundle a graphics-enabled VM (MS Windows).
yes, VM bundling. cozy. π«Ά
The following additional options are recognized only by unicon -C and iconc:
-fstring β Enable features as indicated by the letters in string:aβ all, equivalent todelnsdβ enable debugging features:display(),name(),variable(), error trace back, and the effect of-f n(see below)eβ enable error conversionlβ enable large-integer arithmeticnβ produce code that keeps track of line numbers and file names in the source codesβ enable full string invocation
-nstring β Disable specific optimizations. These are indicated by the letters in string:aβ all, equivalent tocestcβ control flow optimizations other than switch statement optimizationseβ expand operations in-line when reasonable (keywords are always put in-line)sβ optimize switch statements associated with operation invocationstβ type inference
-parg β Pass arg on to the C compiler used byiconc.-rpath β Use the run-time system at path, which must end with a slash.-CCprg β Haveiconcuse the C compiler given by prg.
letters on letters, bestie. thatβs the optimization alphabet soup π
π ENVIRONMENT VARIABLES π
When an Unicon program is executed, several environment variables are examined to determine certain execution parameters. Values in parentheses are the default values. env var check, very vibe check π
BLKSIZE(1% of physical memory) β The initial size of the allocated block region, in bytes.COEXPSIZE(2000) β The size, in words, of each co-expression block.DBLISTβ The location of data bases foriconcto search before the standard one. The value ofDBLISTshould be a semicolon-separated string of the formp1 p2 ... pnwhere thepiname directories.ICONCOREβ If set, a core dump is produced for error termination.ICONXβ The location oficonx, the executor for icode files, is built into an icode file when it is produced. This location can be overridden by setting the environment variableICONX. IfICONXis set, its value is used in place of the location built into the icode file.IPATHβ The location of ucode files specified in link declarations foricont.IPATHis a semicolon-separated list of directories. The current directory is always searched first, regardless of the value ofIPATH.LPATHβ The location of source files specified in preprocessor$includedirectives and in link declarations foriconc.LPATHis otherwise similar toIPATH.MSTKSIZE(50000) β The size, in words, of the main interpreter stack foricont.NOERRBUFβ By default,&erroutis buffered. If this variable is set,&erroutis not buffered.QLSIZE(5000) β The size, in bytes, of the region used for pointers to strings during garbage collection.STRSIZE(1% of physical memory) β The initial size of the string space, in bytes.TRACEβ The initial value of&trace. If this variable has a value, it overrides the translation-time-toption.
defaults in parentheses, exactly as the original says. no guessing bestie π«Ά
π FILES π
uniconβ Unicon translatoricontβ Icon translatoriconcβ Icon compilericonxβ Icon executor
the whole squad is here. π
π SEE ALSO π
- Programming with Unicon, Clinton Jeffery, Shamim Mohamed, Jafar Al-Gharaibeh, Ray Pereda, and Robert Parlett,
http://unicon.org, 2018. - The Icon Programming Language, Ralph E. Griswold and Madge T. Griswold, Peer-to-Peer Communications, Inc., Third Edition, 1996.
- Version 9.3 of Icon, Ralph E. Griswold, Clinton L. Jeffery, and Gregg M. Townsend, IPD278, Department of Computer Science, The University of Arizona, 1996.
- Version 9 of the Icon Compiler, Ralph E. Griswold, IPD237, Department of Computer Science, The University of Arizona, 1995.
required reading, bestie. yes, all of it. π
π LIMITATIONS AND BUGS π
- The icode files for the interpreter do not stand alone; the Icon run-time system (
iconx) must be present. literally not standalone, bestie. - Stack overflow is checked using a heuristic that is not always effective. heuristic checkpoint, not a perfect shield.
"unicon -C"andiconcare not yet ported to MS Windows. They run out of memory on large programs if limited swap or virtual memory address space is available, such as 32-bit platforms. A few features of Unicon, such as ODBC database access, are not yet supported under"unicon -C"andiconc. important caveat, no cap.
π«Ά okay thatβs the whole page, bestie. Itβs UTR11: Manual page for Version..., dated 8 March 2018, and yes, itβs the UNICON(1) manual page. Byeeee πβ¨
π¦ where this page comes from
- nixos 26.05: unicon-lang 13.2-unstable-2025-06-02
- nixpkgs unstable: unicon-lang 13.2-unstable-2025-06-02
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms