CSCI 2400 Lecture Notes - Lecture 9: C Standard Library, Gnu Compiler Collection, Debug Symbol

33 views18 pages

Document Summary

Program can be written as a collection of smaller source files, rather than one monolithic mass. Can build libraries of common functions (ore on this later) Change one source file, compile, and then relink. No need to recompile other source files. Common function can be aggregated into a single file . Executable files and running memory images contain only the library code actually use. During execution, single copy of library code can be shared across all executing processes. Programs define and reference symbols (global variables and functions): Symbol definitions are stored i object file (by assembler) in symbol table. Symbol table is an array of entries. Each entry includes name, size, and location of symbol. During symbol resolution step, the linker associates each symbol definition. Merges separate code and data sections into single sections. Relocates symbol from their relative locations in the . o files to their final absolute memory locations in the executable.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents