Re: c program without main( ) ?



In article <dbbuv7$6k9$3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>, Malcolm
<regniztar@xxxxxxxxxxxxxx> writes
>
>"Nigel Horne" <njh@xxxxxxxxxxxxx> wrote
>>> Can we write a c code which do not contain main()
>>> I have heard that this is possible. Is it really possible?
>>
>> Yes - just write your own replacement to crtStart
>>
>Almost never will a hosted implementation initiate a program by calling
>main() directly. usually there is some housekeeping / startup code called
>first. Sometimes it is possible to override this with the C compiler,
>sometimes not.

Don't you mean freestanding?


--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ chris@xxxxxxxxxxxx www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/



.



Relevant Pages

  • How do you override a virtual property in a generic class?
    ... public class RecordCollection: List ... The error the compiler gives is 'cannot override inherited member ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: C# Override limitation..why?
    ... > override so why can't it look for base.whateverin the base class? ... > look for methods in the base class where the signature parameters match ... It's not that the compiler ... static dispatch based on expression type. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Why does compiler only look at public methods of superclasses of...?
    ... Compiler enumerates all methods in class A and all public methods ... in the superclasses of A to find methods named x ... if method is declared final, static or private then compiler knows ... override a protected method. ...
    (comp.lang.java.programmer)
  • Re: Using DATACLASS
    ... I imagine if you don't supply values, the compiler ... code to override the compiler defaults; ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: Is overriding a function of a library in accordance with C++ standard?
    ... This is not an override of a C++ library, but an override of a C library function. ... The compile/link process you describe is how the compiler works. ... the compiler first searches the object files for all ... the same name in the libraries will be ignored. ...
    (microsoft.public.vc.mfc)