O'Reilly logo

Compilers: Principles and Practice by Himanshu B. Dave, Parag H. Dave

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required