want to know

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Aug 16 14:09:46 AEST 1989


In article <1496 at l.cc.purdue.edu> cik at l.cc.purdue.edu (Herman Rubin) writes:

[Here Rubin goes again.  As regular readers of this newsgroup will recall,
he seems to be of the opinion that C "should" allow him to do anything he
can do in assembler.]

>There is no even moderately fair reason why the user's program should start
>at main (or _main if from C, or _MAIN_ if from Fortran).

There is no particular reason why it shouldn't, either, in C.
Arguments about how other languages, linkers, etc. do it differently
are simply irrelevant.  The initial entry to a C program in a hosted
environment is the function named "main", which has a well-defined
interface (that differs in some ways from other C functions).

Learn to use the language instead of fighting it!



More information about the Comp.lang.c mailing list