⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asl.1

📁 万能汇编工具
💻 1
📖 第 1 页 / 共 2 页
字号:
.B -pInstruct AS to write out the shared symbol definitions in a format suitablefor including into a Pascal or Modula-2 program.  The file's name isconstructed by replacing the source file's extension with '.inc'. See theuser manual for more information about symbol sharing..TP.B -q or -quietTurn on silent assembly mode.  In silent compilation mode, AS will notdo any console output except for warning and error messages..TP.B -r [pass number]Tell AS to output warnings when a situation appears in a source file thatforces another pass of assembly.  Such situations either take place when a symbolis undefined in the first pass or a symbol's value has changed compared to the previous pass.  This option is useful to track down sources of excessivemulti-passing, but be aware that it might yield a fairly large number ofwarnings, especially in the first pass.  Optionally, a pass number may be addedto this option to inhibit output until a certain pass is reached..TP.B -sAdd a section list to the assembly listing.  A section list containsall sections that have been defined in the source files, marking theirnesting level by different levels of indentation.   This option onlymakes sense when the generation of an assembly listing has been turnedon via the.B -Lor.B -lparameters..TP.B -t <mask>Turn on or off parts of the assembly listing that have no individualcommand line parameter.  AS internally keeps an integer value whose bitsrepresent certain components of the listing.  A positive command lineparameter (-t or /t) sets the bits set in <mask>, whereas a negatedparameter (+t) resets the bits set in <mask>.  The individual bits havethe following meaning: bit 0 = source lines and generated machine code,bit 1 = symbol table, bit 2 = macro table, bit 3 = function table, bit 4 =line numbering..TP.B -uTell AS to do additional bookkeeping about which address ranges have beenused by the assembled program.  This option enables the detection of overlappingmemory usage.  If an assembly listing has been turned on via the.B -Lor.B -lparameters, it will also contain a list of all used memory areas..TP.B -U Force AS to operate in case-sensitive mode.  By default, names of symbols,macros, user-defined functions and sections are treated in a case-insensitivemanner..TP.B -wSuppress output of warnings..TP.B -xTurn on extended error reporting.  With extended error reporting, severalerror and warning messages will also print the item that created the message,e.g. the name of an unknown instruction.  When this option is given twice, the erroneous source line is additinally printed..SH PRESETTING PARAMETERSParameters need not neccessarily be given in the command line itself.  Beforeprocessing of command line parameters starts, AS will look if the.B ASCMDenvironment variable is defined.  If it exists, its contents will betreated as additional command line parameters whose syntax is absolutely equal to normal command line parameters.  An exception is made if the variable's contents start with a '@' sign; in such a case, the string afterthe '@' sign is treated as the name of a file that contains the options.Such a file (also called a 'key file') has the advantage that it allowsthe options to be written in different lines, and it does not have a sizelimit.  Some operating systems (like MS-DOS) have a length limit on command lines and environment variable contents, so the key file may beyour only option if you have a lot of lengthy parameters for AS.As parameters given in the.B ASCMDenvironment variable or a key file are processed prior to the command lineitself, and can therefore be overridden by command line parameters..SH NATIONAL LANGUAGE SUPPORTAS supports the needs of different languages and countries in the sense thatit will try to adapt to the language and date/time formats valid for thecurrent environment.  Upon startup, the COUNTRY setting made in theCONFIG.SYS file is queried for DOS and OS/2 implementations of AS.  ForUNIX systems, AS tries to read the LC_TIME resp. LC_MESSAGES environmentvariables to find out the correct format for date/time outputs resp. thelocal language.  If this fails, the LC_ALL and finally LANG variables areprobed.  If none of these environment variables points to a specific localenvironment resp. contains a locale specification unknown to AS, thestandard english/C locale is used.The messages AS can output in different languages are stored in separatefiles with the extension '.msg' .  AS will search for these files in thefollowing directories:- The current directory- The directory the executable of AS was loaded from (only on DOS platforms version >=3.0 or if path was explicitly specified)- The directory specified in the AS_MSGPATH environment variable resp. the directories listed in the PATH environment variable if AS_MSGPATH does not exist.- The LIBDIR directory set at compile time from the Makefile..SH RETURN CODESDepending on the assembly's turnout, .B aslwill generate different return codes:.TP.B 0No errors, warnings might have occured..TP.B 1No command line parameters were given, AS printed a short listof possible command line parameters and terminated thereafter..TP.B 2Errors occured during assembly of at least one source file, no code file was generated for the corresponding source file(s)..TP.B 3A fatal error occured during assembly that forced immediateprogram termination.  Code files may be generated, but are probablyunusuable..TP.B 4Program termination already occured during initialization.  Thismight be either due to a incorrect command line parameter or an errorduring loading the program's overlay file (only possible on MS-DOS)..TP.B 255During initialization, an internal error happened that should notoccur.  If the reaction is reproducable, note down the situation andsend a bug report to the author..SH EXAMPLESTo assemble a source file.B file1.asmwithout any additional bells and whistles, use:.PP.B asl file1.PPwhich will create an output file.B file1.pgiven that there are no errors.  If you additionally want a listing andrename the output file to.B a.out,use.PP.B asl -L file1 -o a.out.PPTo make the listing as comprehensive as possible and to get more detailederror messages, use:.PP.B asl -LuCIs -t 16 -nx file1.SH TIPScalling AS without any parameters will print a short help containing allcommand line parameters and implemented target processors, while callingwith command line parameters but without any source file name will resultin AS asking for a source file name on the console..SH SEE ALSOplist(1), pbind(1), p2hex(1), p2bin(1).SH HISTORYAS originally appeared as a DOS program in 1989, written inBorland-Pascal, and was ported to C and UNIX in 1996.  .SH BUGSThere are too many options.Command line interpreters of some operating systems reserve some characters for their own use, so it might be necessary to givecommand line parameters with certain tricks (e.g., with the helpof escape characters)..SH AUTHOR(S)Alfred Arnold (alfred@ccac.rwth-aachen.de), and a few others...

⌨️ 快捷键说明

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