7.3 Libraries
A library is basically just a searchable archive of object files. If you have a number of source files that contain just functions and related data, you can turn these source files into libraries. Libraries are linked with the translated user program in a separate linking phase before the program becomes executable. Libraries can be defined to be linked statically or dynamically by a program. A library may be shared between concurrently running programs, then we have a shared library. Thus, we have three kinds of libraries – static, shared and dynamic. Each of these three types has its own advantages and disadvantages. Use of libraries to organize your total application development is generally desirable because it is good for program ...
Get Compilers: Principles and Practice now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.