From ST2975@SIUCVMB.SIU.EDU Tue Nov 10 06:37:48 1992 Received: from calvin.sfasu.edu by umaxc.weeg.uiowa.edu (5.61.jnf/920629) on Tue, 10 Nov 92 06:37:46 -0600 id AA00914 with SMTP Received: from SIUCVMB.SIU.EDU by calvin.sfasu.EDU with SMTP (5.59/25-eef) id AA10704; Tue, 10 Nov 92 06:29:34 CST Return-Path: Message-Id: <9211101229.AA10704@calvin.sfasu.EDU> Received: from SIUCVMB.SIU.EDU by SIUCVMB.SIU.EDU (IBM VM SMTP V2R1) with BSMTP id 3851; Tue, 10 Nov 92 06:28:11 CST Date: Tue, 10 Nov 92 06:09:01 CST From: ST2975@SIUCVMB.SIU.EDU To: hyperc-l@calvin.sfasu.edu Subject: Re:library files Status: R Here are some examples that will help explain the lib library utility. The -v flag means be verbose; everything that's done print it. To create a new library: lib newlib -rv file1.o file2.o file3.o The object files are also called modules; that is they are assembled and/or compiled and not linke. The addresses in the modules are said to be relative. The modules can contain any number of functions or subroutines. If one function in a module is needed, the module is added to the linked file, not just the function. rt65.o is an example. You can take the file names from a file: lib newlib -rvi list and the file list contains the names file1.o file2.o file3.o. The -r flag can also be used to add modules to a file. The -r flag means replace. If the module is not in the library, the module is appended to the end of the library. A module may be placed before another module in the library with the -b flag. lib newlib -r new1.o -b file2.o will place new1.o before file2.o in the library newlib You can delete modules with the -d flag and extract modules with the -x flag. You can experiment on a copy of libc and see what the different flags do to it. Make sure you use a backup. I used the lib function to add scanf.o to libc before atoi.o with the command: lib libc -rv scanf.o -b atoi.o (I think!) I've extracted the modules fp65.o and elems65.o from libc for my own dastardly purposes. lib libc -xv fp65.o elems65.o Extracting a module doesn't delete it. Andy.