Re: Gnome success report, optimized compiling



On Sun, 11 Oct 1998 23:54:47 +0200, Richard Hult <rhult@hem2.passagen.se> wrote:
>
>>I just tried it with the new glib -- I left out most of the '-f'
>>optimizations you had in, but from the default I took out -g and put in
>>optimizations for pentiumpro (I have a K6).  I haven't tried any programs
>>yet to see if its faster, but I did notice that the old
>>libglib-1.1.so.4.0.0 is 297k, whereas the new, optimized one is only 136k.
>>Is that just because I disabled debugging, or would a well-configured egcs
>>really produce a lib that's that much smaller?
>
>My guess is that it's the debugging. The optimizations often make the code
>a bit bigger, because it's unrolling loops and making things inlined
>instead of calling functions.

-g does increase file size, but it doesn't slow down or bloat the code,
because all the debugging information is stored in a separate section of
the file where it is only accessed by debuggers.

Might want to use 'size' for a measurement of the actual code size instead
of 'ls -l'.

-- Elliot
"In film you will find four basic story lines. Man versus man, man
 versus nature, nature versus nature, and dog versus vampire."
    - Steven Spielberg



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