Learning windows programming (1) -- Analyzing lib files

Source: Internet
Author: User



As we all know, the lib file is a static library file obtained by combining many obj files. Which obj files are composed of a specific lib file?

A tool can help you call lib.exe.

Use LIBC. LIB as an example. On my computer, the lib file is located in "d: Program FilesMicrosoft Visual StudioVC98LibLIBC. LIB" to enter this directory.

All lib usage options:

D: Program FilesMicrosoft Visual StudioVC98Lib> lib /?
Microsoft (R) Library Manager Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

Usage: LIB [options] [files]

Options:

/CONVERT
/DEBUGTYPE: CV
/DEF [: filename]
/EXPORT: symbol
/EXTRACT: membername
/INCLUDE: symbol
/LIBPATH: dir
/LINK50COMPAT
/LIST [: filename]
/MACHINE: {ALPHA | ARM | IX86 | MIPS | MIPS16 | MIPSR41XX | PPC | SH3 | SH4}
/NAME: filename
/NODEFAULTLIB [: library]
/NOLOGO
/OUT: filename
/REMOVE: membername
/SUBSYSTEM: {NATIVE | WINDOWS | CONSOLE | WINDOWSCE | POSIX} [, # [. #]
/VERBOSE

You can use list to display the obj files.

D: Program FilesMicrosoft Visual StudioVC98Lib> lib/list libc. lib

The entire list is long, so I made another redirection and put the input in the log file.

D: Program FilesMicrosoft Visual StudioVC98Lib> lib/list libc. lib> d: estlibc. log

The final output contains more than 600 rows, so you can fold it and see it.


Show sourceview sourceprint? 001 Microsoft (R) Library Manager Version 6.00.8447

002 Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

003

004 .. uildintelst_objutil.obj

005 .. uildintelst_objmatherr.obj

006 .. uildintelst_objldexp.obj

007 .. uildintelst_objieeemisc.obj

008 .. uildintelst_objfrexp.obj

009 .. uildintelst_objfp1_t.obj

010 .. uildintelst_objessel.obj

011 .. uildintelst_objxmmi2_fp_emul.obj

012 .. uildintelst_objxmmi_fp_emul.obj

013 .. uildintelst_objsqrt.obj

014 .. uildintelst_objpow.obj

015 .. uildintelst_objlog10.obj

016 .. uildintelst_objlog.obj

017 .. uildintelst_objan.obj

018 .. uildintelst_objcos.obj

019 .. uildintelst_objsin.obj

020 .. uildintelst_objatan.obj

021 .. uildintelst_objacs.obj

022 .. uildintelst_objasin.obj

023 .. uildintelst_objestfdiv.obj

024 .. uildintelst_objpowhlp.obj

025 .. uildintelst_objmodf.obj

026 .. uildintelst_objieee87.obj

027 .. uildintelst_objhypot.obj

028 .. uildintelst_objhuge.obj

029 .. uildintelst_objgen=.obj

030 .. uildintelst_objftol.obj

031 .. uildintelst_objfsqrt.obj

032 .. uildintelst_objfrnd.obj

033 .. uildintelst_objfpctrl.obj

034 .. uildintelst_objfloor.obj

035 .. uildintelst_objfilter_simd.obj

036 .. uildintelst_objfilter.obj

037 .. uildintelst_objfabs.obj

038 .. uildintelst_objcommon.obj

039 .. uildintelst_objceil.obj

040 .. uildintelst_objadj_fdiv.obj

041 .. uildintelst_obj87trigh.obj

042 .. uildintelst_obj87triga.obj

043 .. uildintelst_obj87trig.obj

044 .. uildintelst_obj87tran.obj

045 .. uildintelst_obj87sqrt.obj

046 .. uildintelst_obj87fmod.obj

047 .. uildintelst_obj8720.t.obj

048 .. uildintelst_obj87disp.obj

049 .. uildintelst_obj87ctrigh.obj

050 .. uildintelst_obj87ctriga.obj

051 .. uildintelst_obj87ctran.obj

052 .. uildintelst_obj87cdisp.obj

053 .. uildintelst_objfltinf.obj

054 .. uildintelst_objx10fout.obj

055 .. uildintelst_objenpow.obj

056 .. uildintelst_objstrgtold.obj

057 .. uildintelst_objmantold.obj

058 .. uildintelst_objintrncvt.obj

059 .. uildintelst_objfpinit.obj

060 .. uildintelst_objcvt.obj

061 .. uildintelst_objconstpow.obj

062 .. uildintelst_objcfout.obj

063 .. uildintelst_objcfin.obj

064 buildintelst_ob1_utime.obj

065 buildintelst_ob1_strtime.obj

066 buildintelst_ob1_strdate.obj

067 buildintelst_ob1_ctime.obj

068 buildintelst_objwasctime.obj

069 buildintelst_ob1_csftime.obj

070 buildintelst_objutime.obj

071 buildintelst_objzset.obj

072 buildintelst_objimeset.obj

073 buildintelst_objime.obj

074 buildintelst_objpolicime.obj

075 buildintelst_objstrtime.obj

076 buildintelst_objstrdate.obj

077 buildintelst_objstrftime.obj

078 buildintelst_objmktime.obj

079 buildintelst_objlocaltim.obj

080 buildintelst_objgmtime.obj

081 buildintelst_objftime.obj

082 buildintelst_objdtoxtime.obj

083 buildintelst_objdifftime.obj

084 buildintelst_objdays.obj

085 buildintelst_objctime.obj

086 buildintelst_objclock.obj

087 buildintelst_objasctime.obj

088 buildintelst_objcmapmbslen.obj

089 buildintelst_objcmapset.obj

090 buildintelst_objcmapicoll.obj

091 buildintelst_objcmapicmp.obj

092 buildintelst_objcmapcpy.obj

093 buildintelst_objcmapcoll.obj

094 buildintelst_objcmapcmp.obj

095 buildintelst_objcmapcat.obj

096 buildintelst_objcmapbset.obj

097 buildintelst_objcmapbicoll.obj

098 buildintelst_objcmapbicmp.obj

099 buildintelst_objcmapbcpy.obj

100 buildintelst_objcmapbcoll.obj

101 buildinelst_objcmapbcmp.obj

102 buildintelst_objcmapbcat.obj

103 buildintelst_objcmap \ _ mbscpy. obj

104 buildintelst_objcmap \ _ mbclen. obj

105 buildinelst_objcmaplen.obj

106 buildintelst_objcmapicoll.obj

107 buildinelst_objcmapcoll.obj

108 buildinelst_objcmapicmp.obj

109 buildinelst_objcmapcmp.obj

110 buildintelst_objcmapupr.obj

111 buildintelst_objcmaplwr.obj

112 buildinelst_objcmapspnp.obj

113 buildinelst_objcmapinc.obj

114 buildintelst_objcmapextc.obj

115 buildintelst_objcmapccnt.obj

116 buildintelst_objcmapbcnt.obj

117 build

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.