icon sourcefile [arg...]
icon –P 'program' [arg...]
Without –P, a single source file is read and executed
with the given arguments.
With –P, the program is given as a multi-line quoted string.
Environment variables of icont and iconx (see below) are used if present.
An Icon source file can be made directly executable by making its first line be
#!/usr/bin/env iconand setting its execute bit (
chmod +x filename).
icont [option...] file...
-c translate only, without linking
-fs prevent removal of all unreferenced declarations
(same as "invocable all")
-o file name the icode output file file
-p enable execution profiling; implied by ICONPROFILE
-s suppress progress messages
-t give &trace an initial value of -1
-u issue warnings for undeclared identifiers
-v n set verbosity of output, where n =
0 suppress non-error output (same as -s)
1 list procedure names (the default)
2 also report the sizes of icode sections
(procedures, strings, and so forth)
3 also list discarded globals
-E preprocess only
-N make executable more portable by omitting iconx path
-V announce version and configuration information
Name Default Description -------- ------- ----------------------- IPATH none search path for link directives LPATH none search path for $include directivesSearch paths are blank- or colon-separated lists of directories. The current directory is searched before a search path is used.
iconx icode-file-name [arguments for Icon program]
Name Default Description -------- ------- ----------------------- TRACE 0 Initial value for &trace. NOERRBUF undefined If set, &errout is not buffered. STRSIZE 500000 Initial size (bytes) of string region (strings). BLKSIZE 500000 Initial size (bytes) of block region (most objects). COEXPSIZE 2000 Size (long words) of co-expression blocks. MSTKSIZE 10000 Size (long words) of main interpreter stack. ICONPROFILE none Output file for execution profile.