SYNTAX:
Option
|
cc <option>
Description
|
||||||||||||
-c
|
Compiles only; does not attempt to link
source files.
|
||||||||||||
-D name[=value]
|
Is passed to C compiler to assign the
indicated value to the
symbol name
when the C preprocessor is run.
|
||||||||||||
-f float
|
Specifies the floating point options that
the compiler and
linker use. The following
should be supported:
-f - - no floating point required
-f - emulated floating point -fp hardware floating point
(using 80x87 coprocessor)
|
||||||||||||
-Idir
|
Search dir for included files whose names
do not begin with a
slash (/) prior to
searching the usual directories. The
directories for
multiple -I options are
searched in the order specified.
The preprocessor
first searches for
#include files in the directory
containing sourcefile, and
then in
directories named with -I options
(if any), then /usr/ucbinclude,
and
finally, in /usr/include.
|
||||||||||||
-Ldir
|
Add dir to the list of directories
searched for libraries by
/usr/ccs/bin/ucbcc. This option is
passed to /usr/ccs/bin/ld and /usr/lib.
Directories specified with this option
are searched before /usr/ucblib
and
/usr/lib.
|
||||||||||||
-l library
|
If linking, adds the indicated library to
the list of
libraries to be linked.
|
||||||||||||
-M
|
If linking, creates a map file with the
same base name as the
output
executable, but with the suffix.map. This
map file
contains a list of symbols with
their addresses.
|
||||||||||||
-m model
|
Specifies the memory model that the
compiler and linker use.
The models
may include:
|
||||||||||||
-o output
|
If linking, places the executable output
in the file output.
|
||||||||||||
-S
|
Produces assembler listing with source
code.
|
||||||||||||
-Uname
|
Is passed to the C compiler, to undefined
the symbol name.
|
||||||||||||
-Y P, dir
|
Change the default directory used for
finding libraries.
|
---The official student's BLOG intended for Programming Languages and Database Management Systems....
Monday, 6 February 2012
cc OPTIONS
Subscribe to:
Post Comments (Atom)
Labels
- welcome (1)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.