Re: freestanding enviroment !
- From: Charles Krug <cdkrug@xxxxxxx>
- Date: Fri, 17 Mar 2006 20:43:00 -0600
On 2006-03-18, Thad Smith <ThadSmith@xxxxxxx> wrote:
bhagatd@xxxxxxxxx wrote:
In freestanding environment name of the function called at program
startup can be other than 'main' how it is specified?
As others have said it is implementation-defined. The most popular
choice seems to be
void main(void);
since there are no startup parameters and freestanding programs normally
don't exit.
My experience is that you call it whatever you wish, and have some
platform-specific way of getting control transferred there.
If you call it main() the compiler can complain if you declare it wrong,
and folks here will do the same.
.
- References:
- freestanding enviroment !
- From: bhagatd
- Re: freestanding enviroment !
- From: Thad Smith
- freestanding enviroment !
- Prev by Date: Re: Type information in structs of different types
- Next by Date: char * can point to any byte?!
- Previous by thread: Re: freestanding enviroment !
- Next by thread: FILE structure - porting C DLL into other languages
- Index(es):
Relevant Pages
|