Date: Tue, 25 Aug 1998 14:53:11 +0300 (IDT) From: Eli Zaretskii To: Thomas Nyberg cc: djgpp AT delorie DOT com Subject: Re: What does __main do??? In-Reply-To: <6rpug4$1hf$1@zingo.tninet.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 23 Aug 1998, Thomas Nyberg wrote: > When you compile with asm-output ex. gcc -S test.c you there's a call to a > function called ___main (or__main), my question is: what does it do? It calls static constructors, which are constructors for static C++ objects, and any functions that were declared with __attribute__((constructor)).