Download dir - Oracle Documentation
Transcript
-Aname[(tokens)] Associates name as a predicate with the specified tokens as if by a #assert preprocessing directive. Preassertions: ■ ■ ■ ■ ■ system(unix) machine(sparc) (SPARC) machine(i386) (x86) cpu(sparc) (SPARC) cpu(i386) (x86) These preassertions are not valid in -Xc mode. -B[static|dynamic] Specifies whether bindings of libraries for linking are static or dynamic, indicating whether libraries are non-shared or shared, respectively. –Bdynamic causes the link editor to look for files named libx.so and then for files named libx.a when given the -lx option. –Bstatic causes the link editor to look only for files named libx.a. This option may be specified multiple times on the command line as a toggle. This option and its argument are passed to ld. Note – Many system libraries, such as libc, are only available as dynamic libraries in the Solaris 64-bit compilation environment. Therefore, do not use -Bstatic as the last toggle on the command line. -C Prevents the C preprocessor from removing comments, except those on the preprocessing directive lines. -c Directs cc to suppress linking with ld(1) and to produce a .o file for each source file. You can explicitly name a single object file using the -o option. When the compiler produces object code for each .i or .c input file, it always creates an object (.o) file in the current working directory. If you suppress the linking step, you also suppress the removal of the object files. Chapter 2 cc Compiler Options 23