Re: compiler, linker and libraries

"Lionel Brits" <>
28 Jun 2001 23:46:34 -0400

          From comp.compilers

Related articles
compiler, linker and libraries (TC Shen) (2001-06-21)
Re: compiler, linker and libraries (Lionel Brits) (2001-06-28)
Re: compiler, linker and libraries (Matthew J. Lockner) (2001-07-01)
Re: compiler, linker and libraries (2001-07-03)
| List of all articles for this month |

From: "Lionel Brits" <>
Newsgroups: comp.compilers
Date: 28 Jun 2001 23:46:34 -0400
Organization: CADVision/PSINet
References: 01-06-059
Keywords: design
Posted-Date: 28 Jun 2001 23:46:34 EDT


Experience with software development tools will probably give you a better
understanding, but here goes (no link)

A compiler takes source code and translates it into an object file
comprising machine instructions.
A linker takes one or more object files and relocates code into a machine
exacutable file that is ready to be executed.

A library is just a collection of object files stored in a single file that
can be used by more than one program (the idea of reusable code).
Libraries can be statically linked by the linker, so that only the parts
that are needed are included in the executable file, or they can be
dynamically linked when the executable is run, such as .DLL files in the
windows architecture.


- Lionel Brits

"TC Shen" <> wrote in message
> Can anyone show me links to explanation of the relations among
> compilers, linkers and libraries. How they work with each other?

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.