How Executable files executes

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator:Moderators

Post Reply
SatyaNarayan
Posts:1
Joined:Sat Apr 17, 2010 9:50 am
How Executable files executes

Post by SatyaNarayan » Sun Apr 18, 2010 12:51 am

Hi ,
Actually tell how an executable files works on OS. Means How it executes....

User avatar
Mike
Site Admin
Posts:465
Joined:Sat Oct 20, 2007 7:58 pm
Contact:

Re: How Executable files executes

Post by Mike » Sun Apr 18, 2010 7:24 pm

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.
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com

Post Reply