Re: c program without main( ) ?
- From: Chris Hills <chris@xxxxxxxxxxxx>
- Date: Sun, 17 Jul 2005 11:56:36 +0100
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 \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
.
- References:
- c program without main( ) ?
- From: leeaby
- Re: c program without main( ) ?
- From: Nigel Horne
- Re: c program without main( ) ?
- From: Malcolm
- c program without main( ) ?
- Prev by Date: Re: c program without main( ) ?
- Next by Date: Re: Type-casting void pointers?
- Previous by thread: Re: c program without main( ) ?
- Next by thread: Re: c program without main( ) ?
- Index(es):
Relevant Pages
|