Re: freestanding enviroment !



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.

.



Relevant Pages

  • How to create a view in SDI MFC application.
    ... I am removing my view in OnFileNew (at the startup). ... void CMymfcApp::OnFileNew ... I put grey color in view just to have proper display for the view ...
    (microsoft.public.vc.mfc)
  • Re: ksyms vs System.map
    ... int startup(){ ... void cleanup ... 000001fe t startup ... cat /boot/System.map-2.4.26 | grep printk ...
    (comp.os.linux.development.system)
  • Re: NEWBIE: DECWindows Bit Depth
    ... >> Hi folks, ... >> I have the machine start DECWindows on startup and all is well. ... >> experience is with Linux, so I have no idea how to do this. ...
    (comp.os.vms)
  • Getting a window error popup each time I startup my computer
    ... Hi folks, each time I startup my computer I am getting this window popup ... How do I get rid of this? ...
    (microsoft.public.windowsxp.general)
  • ClearVirtual Mem PgFile Shutdown
    ... Local Policies ... I realize it would "speed" the startup and shutdown for mobile users ... wondering what folks thought and were implementing at their sites. ...
    (microsoft.public.windows.server.active_directory)