"Alfred M. Szmidt" <[EMAIL PROTECTED]> writes:

> Is there a reference of what all the crt files are supposed todo?  If
> not, could someone tell me what they do?

crt*.o and similar files are startup code. I.e. code that is linked
automatically into the binaries when you link C programs, and is
executed before main is called. It's responsible for things like
initializing libc, and getting things like environment, arguments,
stdin and stdout, etc, from the operating system so that they can be
passed to main and the rest of the C program in the standard way.

So it's a component of the ANSI-C implementation. I think the
responsibility is split between gcc (the startup code in crt*.o) and
libc (the function _main), but I'm not quote sure how this all fits
together.

Perhaps you knew all this already, then you need to ask more
specificly.

/Niels


_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to