cobcc
COBOL compilation interface
cobcc
[option
...]filename
...
cobcc
is used as an interface shell to the COBOL compiler. It is invoked, by default, when buildclient
(1) or buildserver
(1) is executed with the -C
(COBOL) option. This can be overridden by specifying the ALTCC
environment variable.
The following list indicates the options recognized by cobcc
. To use these options, set the environment variable ALTCFLAGS
to the string of options to be recognized by cobcc
when running buildclient
or buildserver
. Consult your documentation for the COBOL and C compilers to see what effect the various options have.
Note that for cobcc
, unlike cc
and cob
, all options must come before any filenames.
-c
-p -g -r -O
-l
argument
-L
argument
-o
output_file
-E -P -S
-A -C -H -f -G
-w
-D
argument
{-T -Y -U -I -B -X -F -q}
argument
-V -v
-a -s
-u
argument
-W
argument
p
or -0
, it is passed to the C compiler. If it starts with -a
, it is passed to the assembler. If it starts with -l
, it is passed to the loader. If it starts with -C
, it is passed to the COBOL compiler. Otherwise, it is passed through to the C compiler.
The options and their arguments and the file names are passed to the COBOL compiler with the correct options so that the right information is processed by the COBOL compiler, the C compiler, or the loader. The COBOL compiler name is assumed to be cob
and already in the PATH
.
buildclient
(1), buildserver
(1), cc
reference page, Micro Focus COBOL/2 Operating Guide, Micro Focus Ltd.