Mail Archives: djgpp/1996/05/01/19:35:44
In article <y6yu3y3xkan DOT fsf AT rouen DOT daimi DOT aau DOT dk>, u951303 AT rouen DOT daimi DOT aau DOT dk
says...
>
>It seems to me that the executable file produced by gcc is guite large...?
>I compiled the standard "Hello, world"-program, and the output executable
>took up 57k, 32k when compiled with the -s option.
>
This may seem like alot, but it is a fixed amount. It doesn't matter what size
your program is. The "Hello, world" program might compile to , say, 4k on
another compiler. This is about 1/8 the size of DJGPP. But on a larger
program, say, 600k, that 28k doesn't make much difference.
>I know that there's got to be this stub-loader, dpmi-interfacing etc.
>but does this really take up all this space, or did I just overlook
>some switch? What are the options if you want to reduce the size of
>the output?
>
It's my understanding that all functions in libc get added weather they are
needed or not. If size is really critical, then compile your own libc with
just the functions that you need.
>I hope this question hasn't been brought up too often :)
>
Only every few weeks!
>Kristian Hogsberg - u951303 AT daimi DOT aau DOT dk
Phil Frisbie, Jr.
pfrisbie AT trmx3 DOT dot DOT ca DOT gov
- Raw text -