Cirrus Logic CS485 Bedienungsanleitung Seite 37

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 67
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 36
CS485G Spring 2015 37
4. Global symbols: defined in this module, may be referenced by other
modules. In C: functions (except static) and file-global variables
(except static).
5. External symbols: global symbols referenced by this module but de-
fined in another module.
6. Local symbols: symbols defined and referenced only within this
module. In C: functions and file-global variables defined static.
The object file does not even name variables declared within func-
tions. extern.
39 Unix tools for object files
1. ar: creates static libraries
2. strings: lists printable strings in any file
3. strip: deletes symbol-table information from an object file, so it is
no longer linkable.
4. nm: list the symbol table of an object file
5. size: show the names and sizes of the sections of an object file
6. readelf: display the content of an object file
7. objdump: show the names and sizes of the sections of an object file
8. ldd: show the dynamically-linked libraries this object file needs
40 Resolving multiple definitions of the same sym-
bol
1. Strong symbols are procedures and initialized global variables.
2. Weak symbols are uninitialized global variables.
3. Multiple strong symbols are an error.
4. A single strong symbol is equated to all weak occurrences. This
choice can lead to errors if the variable is declared of different types
in different compilation units.
5. Multiple weak symbols are allowed; one is chosen. This choice is
also error-prone.
Seitenansicht 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 66 67

Kommentare zu diesen Handbüchern

Keine Kommentare