This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Giant executables.. what am I doing wrong?


On Tue, Oct 15, 2002 at 11:38:13AM +0200, Claudio Bley wrote:
> Of course, write(2) is a system call, but nonetheless you need an
> entry point somewhere to call that function from your program. That's
> why gcc links in the C library which defines write as a weak symbol
> (at least on my machine).

Then again, 332 kB seems a lot of overhead for adding something like an
entry point. I'm starting to get the idea that this problem is related to
my gcc installation. Compiling the same program on a FreeBSD system using
gcc 2.95 leaves me with an executable of 15 kB. Still rather hefty, but a
lot better.

-- 
		-- Michiel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]