| www.delorie.com/djgpp/mail-archives/browse.cgi | search |
| From: | Endlisnis <s257m AT unb DOT ca> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: What does __main do??? |
| Date: | Sun, 23 Aug 1998 18:29:08 -0300 |
| Organization: | NBTel Internet |
| Lines: | 18 |
| Message-ID: | <35E089A3.77A22E0@unb.ca> |
| References: | <6rpug4$1hf$1 AT zingo DOT tninet DOT se> |
| NNTP-Posting-Host: | fctnts10c07.nbnet.nb.ca |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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? and is
> it possible to replace it (how)?
I'll make an educated guess and say, it is calling your 'main' function.
What else could it be doing. Your main function is a function just like all
the rest, it is just called automatically.
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT GeoCities DOT com
Endlis AT nbnet DOT nb DOT ca
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |