afaik, .dll code> est dans
.lib code>? p>
5 Réponses :
J'ai toujours bien qu'ils soient COFF Format
voir ici pour plus d'informations: http://support.microsoft.com/?id=121460 ( Archive ) em> P> ID d'article: Q121460 em> strong> Les informations de cet article s'appliquent à: p> Windows NT utilise un format spécial pour les fichiers exécutables (image) et les fichiers d'objet. Le format utilisé dans ces fichiers est appelé fichiers portables exécutable (PE) ou format de fichier d'objet commun (COFF). Le nom exécutable portable désigne le fait que les fichiers exécutables peuvent exécuter plus d'une plate-forme. Cet article décrit en détail les fonctionnalités internes des formats de fichier PE / COF et ses paramètres. P> Les en-têtes de fichier PE / COF consistent en un talon MS-DOS, Signature de fichier , En-tête COFF et en-tête facultatif. Un fichier d'objet ne contient que l'en-tête COFF, mais un fichier image contient tous les en-têtes décrits ci-dessus. Le plus important de ces en-têtes est l'en-tête COFF. Le tableau ci-dessous décrit les informations stockées dans l'en-tête COFF. P> Format de fichier d'objet commun (COFF) H1>
date de création: 05-octobre 1994 em> strong>
date de révision: 12 octobre 1994 em> strong> p>
Résumé h2>
Plus d'informations h2>
/ALL
/ARCHIVEMEMBERS
/DISASM
/EXPORTS
/HEADERS
/IMPORTS
/LINENUMBERS
/LINKERMEMBER[:{1|2}]
/OUT:filename
/PDATA
/RAWDATA[:{NONE|BYTES|SHORTS|LONGS}[,#]]
/RELOCATIONS
/SECTION:name
/SUMMARY
/SYMBOLS
Options Definition
/ALL Setting this option causes DUMPBIN to display all
available information except code disassembly.
/ARCHIVEMEMBERS Setting this option causes DUMPBIN to display minimal
information about member objects in a library.
/DISASM Setting this option causes DUMPBIN to show disassembly
of code sections, using symbols if present in the file.
/EXPORTS This option causes DUMPBIN to list all definitions
exported from an executable file or DLL.
/HEADERS Setting this option causes DUMPBIN to display the file
header and the header for each section. When used with a
library, displays the header for each member object.
/IMPORTS This option causes DUMPBIN to list all definitions
imported to an executable file or DLL.
/LINENUMBERS Setting this option causes DUMPBIN to show COFF line
numbers. Line numbers exist in an object file if it was
compiled with /Zi. An executable file or DLL contains
COFF line numbers if it was linked with /DEBUG and
/DEBUGTYPE:COFF option.
/LINKERMEMBER [[:{1|2}]]
Setting this option causes DUMPBIN to list public symbols
defined in a library. Specify the 1 argument to display
symbols in object order, along with their offsets. Specify
the 2 argument to display offsets and index numbers of
objects, then list the symbols in alphabetical order along
with the object index for each. To get both outputs,
specify /LINKERMEMBER without the number argument.
/OUT:<filename> This option specifies a filename for the output.
/RAWDATA [[:{BYTES|SHORTS|LONGS|NONE}[[,number]]]]
Setting this option causes DUMPBIN to display the raw
contents of each section in the file. The arguments
control the format of the display, as follows:
Argument - Result
BYTES - The default. Contents are displayed in hexadecimal bytes,
and also as ASCII if they have a printed representation.
SHORTS - Contents are displayed in hexadecimal words.
LONGS - Contents are displayed in hexadecimal longwords.
NONE - Raw data is suppressed. This is useful to control the
output of /ALL.
number - Displayed lines are set to a width that holds number
values per line.
/RELOCATIONS Setting this option causes DUMPBIN to display any
relocations in the object or image.
/SECTION: <section>
This option restricts the output to information on the
specified section.
/SUMMARY Setting this option causes DUMPBIN to display minimal
information about sections, including total size. This
option is the default if no other option is specified
in a DUMPBIN command.
/SYMBOLS Setting this option causes DUMPBIN to display the COFF symbol
table. Symbol tables exist in all object files. A COFF symbol
table appears in an image file only if it is linked with
/DEBUG /DEBUGTYPE:COFF
@wamp: .so Les fichiers sous Linux sont au format ELF, identique à celui des exécutables.
Certains compilateurs (par exemple, Microsoft) utilisent Coff Format et certains (par exemple, Borland / CodeGear) Utilisez Format OMF . P>
Description de Fichier LIB de Microsoft ( Même contenu, lien de fonctionnement ). P>
Examiner un fichier LIB dans un éditeur hexagonal (Visual Studio 2010), les données semblent être identiques à un fichier .a sur UNIX ... une archive AR. Il a deux fichiers spéciaux (avec des noms vides) au début qui sont une sorte de liste de symboles. P>
EDIT: trouvé une question en double Quel format utilise-t-il des fichiers statistique bibliothèque (* .Lib)? Où puis-je trouver des spécifications "officielles" de la structure / format de fichier * .lib? - Il a un lien qui le confirme. P>
Il y a 2 types de fichiers avec une extension .Lib:
Les deux sont une archive de fichiers COFF. Le format de cette archive est une "archive ar". P>
La commande UNIX (CYGWIN / MINGW) AR peut analyser ce fichier comme la commande tar. P>
Si vous voulez voir Le fichier archivé dans une .lib, vous pouvez faire: p> généralement, si vous voyez le fichier .OBJ, cela signifie qu'il s'agit d'une bibliothèque statique.
Si vous voyez .dll, il s'agit d'une bibliothèque d'importation. P> p>
Si vous êtes intéressé par la visualisation du contenu: P>