Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lorder(CP) — OpenDesktop Software Development System 1.0.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought

     Name
          lorder - find ordering relation for an object library

     Syntax
          lorder file ...

     Description
          The input is one or more object or library archive files
          (see ar(CP)).  The standard output is a list of pairs of
          object file or archive member names, meaning that the first
          file of the pair refers to external identifiers defined in
          the second.  The output may be processed by tsort(CP) to
          find an ordering of a library suitable for one-pass access
          by ld(CP).  Note that the link editor ld(CP) is capable of
          multiple passes over an archive in the portable archive
          format (see ar(F)) and does not require that lorder(CP) be
          used when building an archive.  The usage of the lorder(CP)
          command may, however, allow for a slightly more efficient
          access of the archive during the link edit process.

          The following example builds a new library from existing .o
          files.

               ar -cr library `lorder *.o | tsort`

     Files
          TMPDIR/*symref temporary files

          TMPDIR/*symdef temporary files

                      TMPDIR is usually /usr/tmp but can be redefined
                      by setting the environment variable TMPDIR [see
                      tempnam() in tmpnam(S)].

     See Also
          ar(CP), ld(CP), tsort(CP), ar(F)

     Note
          The lorder command will accept as input any object or
          archive file, regardless of its suffix, provided there is
          more than one input file. If there is but a single input
          file, its suffix must be .o.

     Standards Conformance
          lorder is conformant with:
          AT&T SVID Issue 2, Select Code 307-127;
          and The X/Open Portability Guide II of January 1987.

                                                (printed 6/18/89)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026