Any of the CLIP compiler options described below can be placed in the .cliprc file in the current directory; or in the $HOME/.cliprc file; or in any file in the $CLIPROOT/cliprc directory. For example, you could create a file .cliprc in your home directory with the following content:
-r -l -Scp866
It results in compiling with -r -l -Scp866 options, even if you don't specify them explicitly.
The list of options follows.
display a short usage help and exit
display a short help about acceptable environment variables and exit; see more detailed information in the chapter Environment variables
display CLIP compiler version and exit
set/increase verbose level; possible values of <level> are from 0 (silent) to 6 (most verbose); default is 1
declare any variable included in a PRIVATE, PUBLIC, or PARAMETERS statement as MEMVAR
generate warning messages for undeclared or unaliased (ambiguous) variable references
generate executable file
stop after generation C code
include debugging information in the object file
print generated program syntax tree
place executable in file <name>
define the location of the output object files
set optimisation level for C compiler
use the code of the first file in the file list as a program start point (automatic definition of the MAIN procedure)
suppress the automatic definition of a procedure with the same name as the program file (.prg)
generate pseudocode (P-code) module; see Load() function description
compile in C+P-code mode; smaller size of an output file, either an object or an executable
create an shared object; when used with -e option it results in linking with shared run-time library (libclip.so), which gives a smaller size executable; see -r option
always when possible link with shared libraries; smaller size of an executable
add the specified directory to the INCLUDE path list
add the specified directory to the list of path that CLIP will search for libraries
define macro <name>
define macro <name> as <value>
identifies an alternate standard header file to preprocess in place of the supplied STD.CH which is used automatically
define charset of the string constants used in the source files (.prg); CLIP_HOSTCS environment variable is used by default; see chapter Environment variables for details
define charset of the string constants to be used for an application's output; CLIP_HOSTCS environment variable is used by default; see chapter Environment variables for details
stop after the preprocessing stage; the output is preprocessed source code, which is sent to the standard output
print command definitions at the preprocessing stage
do not remove temporary '.c' files
generate warnings about unresolved function names; see CLIP_NAMES environment variable description in the chapter Environment variable
Don`t use shared libraries, ignore -r -s switches, include all CLIP or system libraries to executable file.
set <name> environment variable's value to <value> for a compilation time
set syntax compatability mode; possible values:
no-as-word - AS clause in variables definitions is not acceptable; it's default behavior
as-word - AS clause in variables defintions is acceptable