1.TH SCC 1 scc\-VERSION2.SH NAME3scc \- wrapper to dispatch scc suite tools4.SH SYNOPSIS5.B scc6.RI [ tool ]7.RI [ arguments ...]8.SH DESCRIPTION9.B scc10is a shell wrapper that dispatches to the appropriate tool in the scc suite.11The first argument selects which tool to invoke. The remaining arguments are12passed unchanged to the selected tool.13If no14.I tool15argument is given, or if the first argument does not match any known tool name,16.B scc17defaults to invoking18.BR scc\-cc (1)19with all provided arguments.20.PP21The tool is resolved under the directory pointed to by22.BR SCCPREFIX .23.SH TOOLS24The following tool names are recognized as the first argument:25.TP26.B cc27Invoke28.BR scc\-cc (1),29the C compiler driver.30.TP31.B cpp32Invoke33.BR scc\-cpp (1),34the C preprocessor wrapper.35.TP36.B as37Invoke38.BR scc\-as (1),39the assembler.40.TP41.B ar42Invoke43.BR scc\-ar (1),44the archive utility.45.TP46.B addr2line47Invoke48.BR scc\-addr2line (1),49the address to source line mapper.50.TP51.B ld52Invoke53.BR scc\-ld (1),54the linker.55.TP56.B make57Invoke58.BR scc\-make (1),59the POSIX make implementation.60.TP61.B nm62Invoke63.BR scc\-nm (1),64the symbol table lister.65.TP66.B objcopy67Invoke68.BR scc\-objcopy (1),69the object file copy and translate utility.70.TP71.B objdump72Invoke73.BR scc\-objdump (1),74the object file dump utility.75.TP76.B size77Invoke78.BR scc\-size (1),79the section size lister.80.TP81.B strip82Invoke83.BR scc\-strip (1),84the symbol stripper.85.PP86If the first argument is not one of the above tool names, it is treated as an87argument to88.B scc\-cc89and all arguments (including the first) are forwarded to it.90.SH ENVIRONMENT VARIABLES91.TP92.B SCCPREFIX93Defines the path prefix under which the scc suite is installed.94All tools are looked up as95.IB $SCCPREFIX /bin/scc\- tool\fR.96If not set,97.B scc98sets it to the parent directory of its own location,99which is supposed to be $SCCPREFIX/bin.100.TP101.B SCCLIBPREFIX102Defines the path prefix for scc libraries.103If not set,104.B scc105sets it to the parent directory of its own location,106which is supposed to be $SCCPREFIX/lib.107.SH EXAMPLES108Compile a C source file (default, invokes109.BR scc\-cc ):110.IP111.EX112scc hello.c113.EE114.PP115Explicitly invoke the compiler driver:116.IP117.EX118scc cc \-o hello hello.c119.EE120.PP121Invoke the assembler:122.IP123.EX124scc as \-o hello.o hello.s125.EE126.PP127Invoke the archiver:128.IP129.EX130scc ar \-r libfoo.a foo.o bar.o131.EE132.PP133Use a custom installation prefix:134.IP135.EX136SCCPREFIX=/opt/scc scc cc \-o hello hello.c137.EE138.SH SEE ALSO139.BR scc\-cc (1),140.BR scc\-cpp (1),141.BR scc\-as (1),142.BR scc\-ar (1),143.BR scc\-ld (1),144.BR scc\-make (1),145.BR scc\-nm (1),146.BR scc\-size (1),147.BR scc\-strip (1),148.BR scc\-objcopy (1),149.BR scc\-objdump (1),150.BR scc\-addr2line (1)