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

📄 util.doc

📁 hello everybody. good lucky to you
💻 DOC
📖 第 1 页 / 共 5 页
字号:
                                Where are you going? I'm headed to the

                    Files searched:
                                *.DOC in the root directory and all its
                                subdirectories on the current drive.


------------------  This example ignores case and just prints the names of
         Example 7  any files that contain at least one match. The three
------------------  command-line examples show different ways of specifying
                    multiple options.

                    Command line:
                                grep -ild " the " \*.doc
                                or
                                grep -i -l -d " the " \*.doc
                                or
                                grep -il -d " the " \*.doc

                    Matches:    Anyway, this is the time we have
                                do you think? The main reason we are

                    Does not match:
                                He said "Hi" to me just when I
                                Where are you going? I'll bet you're headed





                                  - 21 -






                    Files searched:
                                *.DOC in the root directory and all its
                                subdirectories on the current drive.


------------------  This example redefines the current set of legal
         Example 8  characters for a word as the assignment operator (=)
------------------  only, then does a word search. It matches C assignment
                    statements, which use a single equal sign (=), but not
                    equality tests, which use a double equal sign (==).

                    Command line:
                                grep -w[=] = *.c

                    Matches:    i = 5;
                                j=5;
                                i += j;

                    Does not match:
                                if (i == t) j++;
                                /* ======================= */

                    Files searched:
                                *.C in the current directory.



===========================================================================
OBJXREF: The object module cross-reference utility
===========================================================================

                    OBJXREF examines a list of object files and library
                    files and produces reports on their contents. One type
                    of report lists definitions of public names and
                    references to them. The other type lists the segment
                    sizes defined by object modules.

                    There are two categories of public names: global
                    variables and function names. The TEST1.C and TEST2.C
                    files in the section "Sample OBJXREF reports" (page 28)
                    illustrate definitions of public names and external
                    references to them.

                    Object modules are object (.OBJ) files produced by TC,
                    TCC or TASM. A library (.LIB) file contains multiple
                    object modules. An object module generated by TC is
                    given the same name as the .C source file it was com-
                    piled from. This is also true for TCC, unless a



                                  - 22 -






                    different output file name is specifically indicated
                    with the -o TCC command-line option.


  The OBJXREF com-  =======================================================
         mand line
                    The OBJXREF command line consists of the word OBJXREF
                    followed by a series of command-line options and a list
                    of object and library file names, separated by a space
                    or tab character. The syntax is as follows:

                      OBJXREF  options   filename  filename ...

                    The command-line options determine the kind of reports
                    that OBJXREF will generate and the amount of detail
                    that OBJXREF will provide. They are discussed in more
                    detail in the next section.

                    Each option begins with a forward slash (/) followed by
                    a one- or two-character option name.

                    Object files and library files may be specified either
                    on the command line or in a response file. On the com-
                    mand line, file names are separated by a space or a
                    tab. All object modules specified as .OBJ files are
                    included in reports. Like TLINK, however, OBJXREF
                    includes only those modules from .LIB files which
                    contain a public name referenced by an .OBJ file or by
                    a previously included module from a .LIB file.

                    As a general rule, you should list all the .OBJ and
                    .LIB files that are needed if the program is to link
                    correctly, including the startup .OBJ file and one or
                    more C libraries.

                    File names may include a drive and directory path. The
                    DOS ? and * wildcard characters may be used to identify
                    more than one file. File names may refer to .OBJ object
                    files or to .LIB library files. (If you don't give a
                    file extension, the .OBJ extension is assumed.)

                    Options and file names may occur in any order in the
                    command line.

                    OBJXREF reports are written to the DOS standard output.
                    The default is the screen. The reports can be sent to a
                    printer (as with >LPT1:) or to a file (as with
                    >lstfile) with the DOS redirection character (>).



                                  - 23 -






                    Entering OBJXREF with no file names or options produces
                    a summary of available options.


------------------  OBJXREF command-line options fall into two categories:
       The OBJXREF  control options and report options.
      command-line
           options
------------------  Control options
                    =======================================================

                    Control options modify the default behavior of OBJXREF
                    (the default is that none of these options are
                    enabled).


                    -------------------------------------------------------
                    Option Meaning
                    -------------------------------------------------------


                      /I   Ignore case differences in public names. Use
                           this option if you use TLINK without the /C
                           option (which makes case differences
                           significant).

                      /D   Look for .OBJ files in another directory. If you
                           want OBJXREF to look for .OBJ files in a
                           directory other than the current one, include
                           the directory name on the command line, prefixed
                           with /D:

                              OBJXREF /Ddir1 [; dir2 [; dir3]]

                           or

                              OBJXREF /Ddir1 [/Ddir2] [/Ddir3]

                           OBJXREF will search each of the directories in
                           the specified order for all object and library
                           files.

        Important!         If you don't use a /D option, OBJXREF will
                           search only the current directory. If you do use
                           a /D option, however, the current directory will
                           not be searched unless it is included in the
                           directory list. For example, if you wanted
                           OBJXREF to search first the BORLAND directory



                                  - 24 -






                           and then the current directory for files, you
                           would enter

                              OBJXREF /Dborland;.

                           The period denotes the current directory.


                      /F   Include full library. All object modules in
                           specified .LIB files are included even if they
                           do not contain public names that are referenced
                           by an object module being processed by OBJXREF.
                           This provides information on the entire contents
                           of a library file. (See example 4 in the section
                           "OBJXREF examples.")

                      /O   Allows you to specify an output file where
                           OBJXREF will send any reports generated. Its
                           syntax is as follows:

                              OBJXREF filename.obj /report option
                              /Ooutputfilename.ext

                           By default all output is sent to the screen.


                      /V   Verbose output. Lists names of files read and
                           displays totals of public names, modules,
                           segments, and classes.

                      /Z   Include zero-length segment definitions. Object
                           modules may define a segment without allocating
                           any space in it. Listing these zero length
                           segment definitions normally makes the module
                           size reports harder to use but it can be
                           valuable if you are trying to remove all defini-
                           tions of a segment.

                    -------------------------------------------------------


                    Report options
                    =======================================================

                    Report options govern what sort of report is generated,
                    and the amount of detail that OBJXREF provides.





                                  - 25 -






                    -------------------------------------------------------
                    Option Report generated
                    --------------------------------------------------


                      /RC  Report by class type: Module sizes ordered
                           by class type of segment.

                      /RM  Report by module: Public names ordered by
                           defining module.

                      /RP  Report by public names: Public names in
                           order with defining module name.

       This is the    /RR  Report by reference: Public name defini-
          default.         tions and references ordered by name.

                      /RS  Report of module sizes: Module sizes
                           ordered by segment name.

                      /RU  Report of unreferenced symbol names:
                           Unreferenced public names ordered by
                           defining module.

                      /RV  Verbose reporting: OBJXREF produces a
                           report of every type.

                      /RX  Report by external reference: External
                           references ordered by referencing module
                           name.

                    --------------------------------------------------

                    Public names defined in .C files appear in reports with
                    a leading underscore in the reports unless the -U-
                    option was specified when the file was compiled (main
                    appears as _main).

                    You can limit the modules, segments, classes, or public
                    names that OBJXREF reports on by entering the
                    appropriate name on the command line prefixed with the
                    /N option. For example,

                       OBJXREF filelist /RM /NC0

                    tells OBJXREF to generate a report listing information
                    only for the module named C0.




                                  - 26 -






    Response files  =======================================================

                    The command line is limited by DOS to a maximum of 128
                    characters. If your list of options and file names will
                    exceed this limit, you must place your file names in a
                    response file.

                    A response file is a text file that you make with a
          

⌨️ 快捷键说明

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