This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Giant executables.. what am I doing wrong?
>>>>> "Michiel" == Michiel Buddingh' <ajuin+mail@stack.nl> writes:
Michiel> On Mon, Oct 14, 2002 at 08:34:55PM -0400, Joshua Nye
Michiel> wrote:
>> Sounds like you might need a smaller C library then. Check out
>> newlib or some other library and see if that fits your problem.
>> I'm not that familiar with shrinking the C library. =)
Michiel> Although newlib does look interesting, I doubt the
Michiel> problem lies with the C library. Unless I'm mistaken,
Michiel> system calls should have little to do with the C library,
Michiel> as the program calls the kernel directly. This supports
Michiel> my suspicion that gcc is linking in a lot of stuff I
Michiel> could do without. -- -- Michiel
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).
--
Claudio Bley ASCII ribbon campaign (")
Debian GNU/Linux advocate - against HTML email X
http://www.cs.uni-magdeburg.de/~bley/ & vCards / \