[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Generall (GCC) compiler question



Raffaele,

> Whats the difference or for what are the *.a files and the *.so
> OR *.dll files used?

Libraries ending in *.a are statically linked libraries.  If you
compile a program against these, the library code is built into the
program.  It makes the executable more portable, but much larger.
It may also consume more memory when run because it can't share the
same library code with other applications needing the same functions.

Libraries ending is *.so are shared libraries, which means that two
programs calling the same functions can share the memory for this code.
It makes the program smaller on the disk, and smaller in memory.
But it means that the user of your program must have the library on
his or her computer in order to run the program.  This is probably
the same as with the w32 *.dll files (dynamic link libraries).

Chris
-- 
Christopher S. Swingley             phone: 907-474-2689
Computer / Network Manager          email: cswingle@iarc.uaf.edu
IARC -- Frontier Program            GPG and PGP keys at my web page:
University of Alaska Fairbanks      www.frontier.iarc.uaf.edu/~cswingle

 "They that can give up essential liberty to obtain a little temporary 
  safety deserve neither liberty nor safety."  -- Ben Franklin

Attachment: pgpCA0fL6_lHy.pgp
Description: PGP signature


Reply to: