[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Statiske biblioteker..



In article <sslug@sslug> you wrote:

> In article <sslug@sslug> you wrote:
> > Kompileret statisk fylder dette program omkring 400kb (90kb strippet).
> > Hvorfor kan linkeren ikke finde ud af kun at linke de funktioner ind der
> > bruges. Er det et spørgsmål om at dette er for besværligt? De ligger jo
> > i seperate .o filer i libc.a arkivet.

....

>  gcc -Wall c.c -o c 

> -rwxr-xr-x   1 frank    users        3979 mar 26 01:30 c
> -rw-r--r--   1 frank    users          60 mar 26 01:30 c.c

Ups. jeg læste ikke "static" dvs :

gcc -static -Wall c.c -o c 

 -rwxr-xr-x   1 frank    users      109505 mar 26 01:52 

og circa 93492 stripped.

Og " nm -l c" giver godt nok en lang liste funktioner. ...
(også uden ctype og isspace() er medtaget)


-- 
mvh Frank Damgaard  | http://home3.inet.tele.dk/frda/



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:07 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *