This preview shows page 1. Sign up to view the full content.
Unformatted text preview: n decompose it into smaller, more manageable modules that can be modiﬁed and compiled separately. When we change one of these modules, we simply recompile it and relink the application, without having to recompile the other ﬁles. Linking is usually handled quietly by the linker, and is not an important issue for students who are building small programs in introductory programming classes. So why bother learning about linking? ¯ ¯ Understanding linkers will help you build large programs. Programmers who build large programs often encounter linker errors caused by missing modules, missing libraries, or incompatible library versions. Unless you understand how a linker resolves references, what a library is, and how a linker uses a library to resolve references, these kinds of errors will be bafﬂing and frustrating. Understanding linkers will help you avoid dangerous programming errors. The decisions that Unix linkers make when they resolve symbol references can silently affect the correctness of y...
View Full Document
This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.
- Spring '10
- The American