as.1

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 362 行

1
362
字号
.TH as 1 RISC.SH Nameas \- RISC assembler.SH Syntax.B as[ option ] ... .I file.SH Description.NXR "as command (RISC)"The assembler,.B as ,produces RISC object code in RISC extended .B coffformat (the default) and binary assembly language. The .B asassembler does not run the loader.  It accepts the argument.I filewhich is a symbolic assembly language source program.  When assembled,it produces an object file..PPThe assembler,.B as,always defines the C preprocessor macros.BR mips ,.BR host_mips ,.B unixand.B LANGUAGE_ASSEMBLYto the C macro preprocessor.It also defines.B SYSTYPE_BSDby default, but this changes if the.BI \-systype " name"option is specified (see the OPTIONS section)..SH OptionsThe following options are available with .B as.In addition, these options can be used with .MS cc 1 ..TP 15.B \-g0Do not produce symbol table information for symbolicdebugging.  This is the default..TP 15.B \-g1Produce additional symbol table information for accuratebut limited symbolic debugging of partially optimized code..TP 15.BR \-g " or " \-g2Produce additional symbol table informationfor full symbolic debugging and do not perform optimizations thatlimit full symbolic debugging..TP 15.B \-g3Produce additional symbol table information for fullsymbolic debugging for fully optimized code.  This option makes thedebugger inaccurate..TP 15.B \-wSuppress warning messages..TP 15.B \-PRun only the C macro preprocessor and place the result in a file.  If thesource file has a suffix, change the suffix to .i.  If the source file doesnot have a suffix, an .i is added to the source file name.  The .i filedoes not contain number lines (#). This sets the .B \-cppoption..TP 15.B \-ERun only the C macro preprocessor on the file and send the result to thestandard output.This sets the  .B \-cppoption..TP 15.BI \-o " output"Name the final output file.IR output .If this option is used, the a.out file is not affected..TP 15.BI \-D name=def.br.ns.TP 15.BI \-D \*SnameDefine the.I nameto the C macro preprocessor,as if by #define. If definition is not given, the name is defined as 1..TP 15.BI \-U \*SnameRemove any initial definition of.IR name ..TP 15.BI \-I \*SdirSearch for #include fileswhose names do not begin with slash (/)in the directory of the.I fileargument, then in directories specified in .B \-Ioptions,and finally in the standard directory.RB ( /usr/include )..TP 15.B \-IDo not search for #include files in the standarddirectory.RB ( /usr/include )..TP 15.BI \-G " num"Specify the maximum size, in bytes, of a data item that is to be accessed fromthe global pointer.  The .I numargument is interpreted as a decimal number.  If.I numis zero, data is not accessed from the global pointer.  The defaultvalue for.I numis 8 bytes..TP 15.B \-vPrint the passes as they execute with their arguments, input files, and output files.Also prints resource usage in the C-shell.I timeformat..TP 15.B \-VPrint the version of the driver and the versions of all passes.  This is performed with the.MS what 1command..TP 15.B \-cppRun the C macro preprocessor on assembly source files before compiling.This is the default for.MS as 1 ..TP 15.B \-nocppDo not run the C macro preprocessor on assembly source files before compiling..PPEither object file target byte ordering can be produced by.B as.The default target byte ordering matches the machine where the assembler isrunning.  The options.B \-EBand.B \-ELspecify the target byte ordering (big-endian and little-endian,respectively).The assembler also defines a C preprocessor macro for thetarget byte ordering.  These C preprocessor macros are.B MIPSEBand.B MIPSELfor big-endian and little-endian byte ordering respectively..TP 15.B \-EBProduce object files targeted for big-endian byte ordering.  The C preprocessormacro.B MIPSEBis defined by the assembler..TP 15.B \-ELProduce object files targeted for little-endian byte ordering.  TheC preprocessor macro.B MIPSELis defined by the assembler..PPThe following option can only be used with the .B ascommand:.PP.TP 15.B \-mApply the M4 preprocessor to the source file before assembling it..PPThe following option is primarily used to provide UNIX compilationenvironments other than the native compilation environment..TP 15.BI \-systype " name"Use the named compilation environment.I name.See.MS compilation 7for the compilation environments that are supported and their.IR name s.This has the effect of changing the standard directory for #includefiles.The new items are located in their usual paths but with.RI / nameprepended to their paths.Also a preprocessor macro of the form.BI SYSTYPE_ NAME(with.I namecapitalized) is defined in place of the default.B SYSTYPE_BSD..PPThe options described below primarily aid compilerdevelopment and are not generally used:.TP 15.BI \-H cHalt compiling after the pass specified by the character.IR c ,producing an intermediate file for the next pass.  The.I ccan be.B [ a ].It selects the assembler pass in the same way as the.B \-toption.If this option is used, the symbol table file produced and used by the passesis the last component of the source file with the suffix changed to .T, ora .T is added if the source file has no suffix. This file is not removed..TP 15.B \-KBuild and use intermediate file names with the last component of thesource file's  name replacing its suffix with the conventional suffix for thetype of file (for example, .G file for binary assembly language).If the source file has no suffix the conventional suffix is added to the sourcefile name.These intermediate files are never removedeven when a pass encounters a fatal error..TP 15.BI \-W c[c...],arg1[,arg2...]Pass the argument[s].I argito the compiler pass[es].I c[c..].The.I c'sare one of.B [ pab ].The c's selects the compiler pass in the same way as the.B \-toption..PPThe options.BR \-t [ hpab ],.BI \-h path,and.BI \-B stringselect a name to use for a particular pass.These arguments are processed from left to right so their order is significant.When the.B \-Boption is encountered, the selection of names takes place using the last.B \-hand.B \-toptions.  Therefore, the.B \-Boption is always required when using.B \-hor.BR \-t .Sets of these options can be used to select any combination of names..PP.TP 15.BR \-t [ hpab ]Select the names.  The names selected are those designated by the charactersfollowing the.B \-toption according to the following table:.br.ta \w'include    \ \ 'u\fBName     Character\fP.brinclude	h  (see note below).brcpp	p.bras0	a.bras1	b.sp +.5If the character h is in the.B \-targument then a directory is added to the list of directories to be used in searching for #include files.  This directory name has the form.SM COMP_TARGET_ROOT\fR/usr/include\fIstring\fR .This directory is to contain the include files for the.I stringrelease of the compiler.  The standard directory is still searched..TP 15.BI \-h \*SpathUse.I pathrather than the directory where the name is normally found..TP 15.BI \-B \*SstringAppend.I stringto all names specified by the.B \-toption.  If .B \-toption has not been processed before the.B \-B,the.B \-toption is assumed to be ``hpab''.  This list designates allnames..PPInvoking the assembler with a name of the form.BI as stringhas the same effect as using a.BI \-B stringoption on the command line..PPIf the environment variable.SM COMP_HOST_ROOTis set, the value is used as the rootdirectory for all pass names rather than the default slash (/).If the environment variable.SM COMP_TARGET_ROOTis set, the value is used as the rootdirectory for the includes rather than the default slash (/)..PPIf the environment variable.SM ROOTDIRis set, the value is used as the rootdirectory for all names rather than the default.B /usr/.This also affects the standard directory for #include files, /usr/include ..PPIf the environment variable.SM TMPDIRis set, the value is used as the directory to place any temporary filesrather than the default.BR /tmp/ ..PPOther arguments are ignored..SH Files.TP 15file.oobject file.TP 15a.outassembler output.TP 15/tmp/ctm?temporary.TP 15/usr/lib/cppC macro preprocessor.TP 15/usr/lib/as0symbolic to binary assembly language translator.TP 15/usr/lib/as1binary assembly language assembler and reorganizer.TP 15/usr/includestandard directory for #include files.SH See Alsocc(1), as(1), what(1)	

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?