cc.1
来自「minix操作系统最新版本(3.1.1)的源代码」· 1 代码 · 共 589 行 · 第 1/2 页
1
589 行
.TH CC 1.SH NAMEcc, pc, m2 \- MINIX 3 C, Pascal, and Modula-2 compilers.SH SYNOPSIS.in +.5i.ti -.5i.BR cc |\c.BR pc |\c.BR m2.RB [ "\-D \fIname\fR[\fB=\fIvalue" ]]\&....RB [ "\-U \fIname" ]\&....RB [ "\-I \fIdirectory" ]\&....RB [ \-.\fIsuffix ]\&....RB [ \-c ].RB [ \-E ].RB [ \-P ].RB [ \-S ].RB [ \-c.\fIsuffix ].RB [ \-O ].RB [ \-O\fIlevel ].RB [ \-OS ].RB [ \-OT ].RB [ \-g ].RB [ \-n ].RB [ \-a ].RB [ \-R ].RB [ \-A ].RB [ \-s ].RB [ \-fsoft ].RB [ \-fnone ].RB [ \-w ].RB [ \-wo ].RB [ \-ws ].RB [ \-wa ].RB [ \-3 ].RB [ \-_ ].RB [ \-W\fIname\fB\-\fIoption ]\&....RB [ \-m\fIarch ].RB [ "\-o \fIoutfile" ].RB [ "\-L \fIdirectory" ]\&....RB [ \-i ].RB [ \-sep ].RB [ \-com ].RB [ \-r ].RB [ "\-stack \fIsize" ].I operand\&....sp .4v.ti -.5i(Minix-86 subset:).ti -.5i.BR cc |\c.BR pc |\c.BR m2.RB [ "\-D\fIname\fR[\fB=\fIvalue" ]]\&....RB [ "\-U\fIname" ]\&....RB [ "\-I\fIdirectory" ]\&....RB [ \-.o ]\&....RB [ \-c ].RB [ \-E ].RB [ \-P ].RB [ \-S ].RB [ \-c.\fIsuffix ].RB [ \-O ].RB [ \-O\fIlevel ].RB [ \-n ].RB [ \-a ].RB [ \-R ].RB [ \-A ].RB [ \-s ].RB [ \-f ].RB [ \-w ].RB [ \-wo ].RB [ \-ws ].RB [ \-wa ].RB [ \-3 ].RB [ \-_ ]\&....RB [ \-m ].RB [ "\-o \fIoutfile" ].RB [ "\-L\fIdirectory" ]\&....RB [ \-i ].RB [ \-sep ].RB [ \-com ].I operand\&....in -.5i.SH DESCRIPTION.BR Cc ,.BR pc ,and.BR m2are the call names of the MINIX 3 C, Pascal, and Modula-2 compilers fromthe Amsterdam Compiler Kit (ACK)..PPAll these call names are links to the.B acddriver program..B Acduses the driver description file.B /usr/lib/descrthat describes the steps necessary to compile a source file. The.BR acd (1)manual page describes a few more flags, like.BR \-v ,that may be useful for debugging compiler problems..PPMinix-86 uses a C program as the compiler driver. This driver is not asflexible as the one implemented with the.B acddriver, and offers a smaller number of options. The second line ofthe synopsis above shows the options that the Minix-86 driver supports. Therest of this manual page is geared towards the.B acddriver. People writing software for Minix-86, or that should beportable to all MINIX 3 versions should stick to the options listed underthe Minix-86 compiler..SH OPTIONSThe transformations done by the compiler are modified by the followingoptions. They are a superset of the options required by \s-2POSIX\s+2,with the MINIX 3 or compiler specific ones are marked as such. Optionsfor one specific compiler are ignored for others. Read the OPTIONS sectionof.BR acd (1)for the driver specific options..PP.TP.BI \-D " name\fR[\fB=\fIvalue\fR]"Same as if.BI #define " name value"had been given..B 1is assumed if.I valueis omitted. This argument, like all the other double arguments, may alsobe given as a single argument. (I.e. either as.BI \-D "\0name"or.BI \-D name\fR.)(The Minix-86 driver is not so flexible, the proper form can be seen inthe synopsis.).TP.BI \-U " \fIname"Undefine the pre-defined symbol.IR name ..TP.BI \-I " directory"Extend the include directory path with the given directory. Thesedirectories are searched for include files in the given order before thestandard places. The standard place for the C compiler is.BR /usr/include ,and for the Modula-2 compiler it is.BR /usr/lib/m2 ..TP.BI \-. suffixAct as if a source file with the given suffix is present on the command line.For each language found on the command line the appropriate libraries areselected. The first language mentioned selects the runtime startoff.The call name of the driver also chooses the language, so \fBcc\fP is animplicit.BR \-.c .The runtime startoff can be omitted by specifying.B \-.ofor those rare cases where you want to supply your own startoff. (MINIX 3).TP.B \-cTransform the input files to object files and stop. The.B \-ooption may be used under MINIX 3 to set the name of the object file..BR Make (1)likes this, because.BI "cc \-c" " dir/file" .cputs.IB file .oin the current directory, but.BI "cc \-c" " dir/file" .c.BI \-o " dir/file" .oputs the.B .ofile where.B makeexpects it to be by its builtin.B .c.orule.(Minix-86 can only use.B \-oto name an executable.).TP.B \-ERun the preprocessor over the input files and send the result to standardoutput or the file named by.BR \-o .Standard input is read if an input file is named "\fB\-\fR"..TP.B \-PRun the preprocessor over the input files and put the result to fileswith the suffix.BR .i .File and line number information is omitted from the output. Use.B \-P \-Eunder MINIX 3 to omit this info for.B \-Etoo..TP.B \-STransform the input files to assembly files with suffix.BR .s ..TP.BI \-c. suffixTransform the input files to files with the given suffix. This can onlysucceed if there is a valid transformation from the input file to thegiven suffix. The same goes for.B \-cand other options that are just special cases of this option, except for.BR \-P ,.B \-c.ikeeps the line number info. The option.B \-c.amakes the driver transform the input files to object files and add them to alibrary. (So you do not need to know how the archiver works.) Note that youneed to give object files as arguments if you want to replace old objectfiles. Transformed files are added under a (unique) temporary name. With.B \-oyou can name the library. (MINIX 3) (Minix-86 can't do.BR \-c.a .).TP.B \-OOptimize code. This option is a no-op, because all the compilers alreadyuse the.BR \-O1optimization level to get code of reasonable quality. Use.BR \-O0to turn off optimization to speed up compilation at debug time..TP.BI \-O levelCompile with the given optimization level. (MINIX 3).PP.B \-OS.br.B \-OT.RSOptimize for space or for time. (MINIX 3).RE.TP.B \-gCompile the C source with debugging information. (The way.BR \-g ,.B \-sand.B \-Ointeract is left unspecified.).TP.B \-nOmit the file and line number tracking that is used for runtime error reportsfrom Pascal or Modula-2 programs. The.B \-nflag is normally used to compile library modules, but may also be useful tomake a program smaller and faster once debugged. (Pascal & Modula-2).TP.B \-aEnable assertions, i.e. statements of the form \fBassert\fI\ test\fRthat cause a descriptive runtime error if the boolean expression.I testevaluates false. (Pascal & Modula-2).TP.B \-RDisable runtime checks like overflow checking. (Pascal & Modula-2).TP.B \-AEnable array bound checks. (Pascal & Modula-2).TP.B \-sStrip the resulting executable of its symbol table..PP.B \-fsoft.br.B \-f.RSUse software floating point instead of hardware floating point. This isa loader flag, but in general it is best to specify this flag in allphases of the compilation. (MINIX 3).RE.TP.B \-fnone
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?