📄 pc.1
字号:
.\" SCCSID: @(#)pc.1 2.2 7/17/87.TH pc 1 VAX.SH Namepc \- Pascal compiler.SH Syntax.B pc[\|\fIoption\fR\|] \fIname...\fR.SH Description.NXR "pc compiler".NXR "Pascal compiler".NXA "pc compiler" "pix command".NXA "pc compiler" "prof command".NXA "pc compiler" "px command".NXA "pc compiler" "pxp command".NXA "pc compiler" "ctags command".NXA "pc compiler" "make command (general)".NXA "pc compiler" "pi code translator".NXA "pc compiler" "ld command"The.PN pccommandis a Pascal compiler.If given an argument file ending witha .p,it compiles and loads the fileinto an executable file called, by default, a.out..PPA program may be separated into more than one .p file. The.PN pccommand compiles a number of argument .pfiles into object files (withthe extension .oin place of .p).Object files may then be loaded into an executable a.out file.Exactly one object file must supply a .I programstatement to successfully create an executable a.out file.The rest of the files must consist only of declarations which logically nest within the program.References to objects shared between separately compiled filesare allowed if the objects are declared in.PN include dheader files, whose names must end with .h.Header files may only be included at the outermost level,and thus declare only globally available objects.To allow functions and proceduresto be declared, an.I externaldirective has been added, whose use is similar to the.I forwarddirective but restricted to appear only in.PN \&.hfiles.The.I functionand .I procedurebodies may not appear in .PN \&.h files. A binding phase of the compiler checks that declarationsare used consistently, to enforce the type checking rules of Pascal.The 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..PPObject files created by other language processors may be loaded together withobject files created by .PN pc .The .I functions and .I proceduresthey define must have been declaredin .h files included by all the .pfiles which call those routines.Calling conventions are as in C,with.I varparameters passed by address..SH Options.NXR "pc compiler" "options"The following options have the same meaning as in.MS cc 1and .MS f77 1 .(Note that .MS f77 1is from the unsupported subset.)See .MS ld 1 for load-time options..IP \fB\-c\fR 20Suppresses loading and produce .o files from source files..IP \fB\-g\fR 20Produces additional symbol table information for .MS dbx 1 ..IP \fB\-w\fR 20Suppresses warning messages..IP \fB\-O\fR 20Invokes anobject-code improver..IP "\fB\-\|o\fI output\fR" 20Names the final output file.I outputinstead of a.out..IP \fB\-p\fR 20Prepares object files for profiling. For further information, see .MS prof 1 ..IP \fB\-S\fR 20Compiles the named program, and leave theassembler-language output on the corresponding file suffixed .s.No .o file is created..PPThe following options are peculiar to.PN pc ..IP \fB\-C\fR 20Compiles code to perform runtime checks,verify.PN assertcalls,and initialize all variables to zero as in.IR pi ..IP \fB\-b\fR 20Block buffers the file.I output..IP \fB\-i\fIname\fR 20Produces a listing forthe specified procedures, functions and.PN includefiles..IP \fB\-l\fR 20Makes a program listing during translation..IP \fB\-s\fR 20Accepts standard Pascal only and non-standard constructs cause warning diagnostics..PPBecause the.B \-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 .MS strip 1after they are compiled..IP "\fB\-\|t\fI directory\fR" 20Uses the given.I directoryfor compiler temporary files..IP \fB\-z\fR 20Allows execution profiling with.PN pxpby generating statement counters, and arranging for thecreation of the profile data file pmon.outwhen the resulting object is executed. The.B \-zflag doesn't work for separately compiled files..PPOther arguments are taken to be loader option arguments,perhaps libraries of.PN pccompatible routines.Certain flags can also be controlled in comments within the program..SH Restrictions.NXR "pc compiler" "restricted"The keyword.I packedis recognized but has no effect..SH DiagnosticsSee .MS pi 1for an explanation of the error message format..SH Files.ta 2.5ifile.p pascal source files.br/usr/lib/pc0 compiler.br/lib/f1 code generator.br/usr/lib/pc2 runtime integrator (inline expander).br/lib/c2 peephole optimizer.br/usr/lib/pc3 separate compilation consistency checker.br/usr/lib/pc2.*strings text of the error messages.br/usr/lib/how_pc basic usage explanation.br/usr/lib/libpc.a intrinsic functions and I/O library.br/usr/lib/libm.a math library.br/lib/libc.a standard library, see intro(3).SH See Alsopi(1), pxp(1), pxref(1) .br"Berkeley Pascal User's Manual,"\fISupplementary Documents, Volume 2: Programmer\fP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -