So, can anybody post me the source code of ___main or info about where I can
get it or, at least, tell me what is going on there ?
As an aside, any information about gcrt0.o and stuff like that would be
appreciated as well.
Thanks in advance
>When I recently examined assembler code that was produced by gcc (2.5.8) I
>found a subroutine call for ___main. This call was always done before the "
>real" programm.
>I found a label ___main in __main.o (libgcc.a) but no source code.
>So, can anybody post me the source code of ___main or info about where I can
>get it or, at least, tell me what is going on there ?
__main() preforms C++ initialization. If you have no C++ code in your
program, the call will have no effect. If you do have C++ code in your
program, your static constructors will be called. CB.
===========================================================================
_ _ Clark Bremer cla...@netstar.com
/ /_) Software Engineer, NetStar Inc.
\_/__) 10250 Valley View Road MPLS, MN 55344