Page 1 of 1

How Executable files executes

Posted: Sun Apr 18, 2010 12:51 am
by SatyaNarayan
Hi ,
Actually tell how an executable files works on OS. Means How it executes....

Re: How Executable files executes

Posted: Sun Apr 18, 2010 7:24 pm
by Mike
Hello,

By reading the header structures in the file, you can get access to all components of the executable, including its entry point address. To execute the program, just transfer control to that entry point function.

Different executable file formats exists; the series currently uses the PE file format as that is what Visual Studio outputs. Please see the MSVC chapter in the series for detailed information on how to execute PE executables.