📄 pc.1
字号:
.\" Copyright (c) 1980, 1990, 1993.\" The Regents of the University of California. All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\" notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\" notice, this list of conditions and the following disclaimer in the.\" documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\" must display the following acknowledgement:.\" This product includes software developed by the University of.\" California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\" may be used to endorse or promote products derived from this software.\" without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\" @(#)pc.1 8.1 (Berkeley) 6/6/93.\".Dd June 6, 1993.Dt PC 1.Os BSD 4.Sh NAME.Nm \&pc.Nd Pascal compiler.Sh SYNOPSIS.Nm \&pc.Op option.Op Fl i Ar name \&....Ar name \&....Sh DESCRIPTION.Nm \&Pcis a Pascal compiler.If given an argument file ending with.Pa \&.p ,it will compile the fileand load itinto an executable file called, by default,.Pa a.out ..PpA program may be separated into more than one.Pa \&.pfile..Nm \&Pcwill compile a number of argument.Pa \&.pfiles into object files (withthe extension.Pa \&.oin place of.Pa \&.p ) .Object files may then be loadedinto an executable.Pa a.outfile.Exactly one object file must supply a.Ar programstatement to successfully create an executable a.out file.The rest of the files must consist only ofdeclarations which logically nest within the program.References to objects shared between separately compiled filesare allowed if the objects are declared in.Ic includedheader files, whose names must end with.Pa \&.h .Header files may only be included at the outermost level,and thus declare only globally available objects.To allow.Ic function Ns sand.Ic procedure Ns sto be declared, an.Ic externaldirective has been added, whose use is similar to the.Ic forwarddirective but restricted to appear only in.Pa \&.hfiles..Ic Functionand.Ic procedurebodies may not appear in.Pa \&.hfiles.A binding phase of the compiler checks that declarationsare used consistently, to enforce the type checking rules of Pascal..PpObject filescreated by other language processors may be loaded together withobject files created by.Nm \&pc .The.Ic function Ns sand.Ic procedure Ns sthey define must have been declaredin.Pa \&.hfiles included by all the.Pa \&.pfiles which call thoseroutines.Calling conventions are as in C,with.Ic varparameters passed by address..PpSee the.%T "Berkeley Pascal User's Manual"for details..PpThe following options have the same meaning as in.Xr cc 1and.Xr f77 1 .See.Xr \&ld 1for load-time options..Bl -tag -width indent.It Fl cSuppress loading and produce `.o' file(s) from source file(s)..It Fl gHave the compiler produce additional symbol table information for.Xr dbx 1 ..It Fl wSuppress warning messages..It Fl pPrepare object files for profiling, see.Xr prof 1 ..It Fl OInvoke anobject-code improver..It Fl SCompile the named program, and leave theassembler-language output on the corresponding file suffixed `.s'.(No `.o' is created.)..It Fl o Ns Ar outputName the final output file.Ar outputinstead of.Pa a.out ..El.PpThe following options are peculiar to.Nm pc ..Bl -tag -width indent.It Fl CCompile code to perform runtime checks,verify.Ic assertcalls,and initialize all variables to zero as in.Nm pi ..It Fl bBlock buffer the file.Ar output ..It Fl iProduce a listing forthe specified procedures, functions and.Ar includefiles..It Fl lMake a program listing during translation..It Fl sAccept standard Pascal only;non-standard constructs cause warning diagnostics..It Fl t Ar directoryUse the given.Ar directoryfor compiler temporary files..It Fl zAllow execution profiling with.Nm pxpby generating statement counters, and arranging for thecreation of the profile data file.Pa pmon.outwhen the resulting object is executed..El.PpOther argumentsare takento be loader option arguments,perhaps libraries of.Nm \&pccompatible routines.Certain flags can also be controlled in comments within the programas described in the.%T "Berkeley Pascal User's Manual.".Sh FILES.Bl -tag -width /usr/lib.pc2.*strings -compact.It Pa file.pPascal source files..It Pa /usr/lib/pc0Compiler..It Pa /lib/f1Code generator..It Pa /usr/lib/pc2Runtime integrator (inline expander)..It Pa /lib/c2Peephole optimizer..It Pa /usr/lib/pc3Separate compilation consistency checker..It Pa /usr/lib/pc2.*stringsText of the error messages..It Pa /usr/lib/how_pcBasic usage explanation..It Pa /usr/lib/libpc.aIntrinsic functions and.Tn I/Olibrary..It Pa /usr/lib/libm.aMath library..It Pa /lib/libc.aStandard library, see.Xr intro 3 ..El.Sh SEE ALSO.Xr \&pi 1 ,.Xr pxp 1 ,.Xr pxref 1 ,.Rs.%T "Berkeley Pascal User's Manual".Re.Sh HISTORYThe.Nm \&pcappeared in.Bx 4.0 ..Sh DIAGNOSTICSFor a basic explanation do.Pp.Bd -literal -offset indentpc.Ed .PpSee.Xr \&pi 1 .for an explanation of the error message format.Internal errors cause messages containing the word.Tn SNARK ..Sh BUGSThe keyword.Ic packedis recognized but has no effect..PpThe binder is not as strict as described here,with regard to the rules about external declarations onlyin `.h' files and including `.h' files only at the outermost level.It will be made to perform these checks in its next incarnation,so users are warned not to be sloppy..PpThe.Fl zflag doesn't work for separately compiled files..PpBecause the.Fl soption is usurped by the compiler,it is not possible to pass the strip option to the loader.Thus programs which are to be stripped, must be run through.Xr strip 1after they are compiled.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -