[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:


> Dumt spørgsmål forude:

> #include <ctype.h>

> int main()
> {
>   char c;
>   isspace(c);
>   
> }

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

Hvordan oversætter du?

 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

 ldd c  
        libc.so.6 => /lib/libc.so.6 (0x40011000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Efter strip er det 2616 bytes.

Hvilken oversætter anvendes ? (gcc -dumpversion)

-- 
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] *