How .Net code execute

2 04 2008

User Write code in any of the langage (c#,vb.net or J#) the approate compiler compiled the code into managed modules

Managed Module:-It contain 4 Parts

1)PE Header

2)CLR Header

3)Meta Data

4)IL

PE Header:- PE menas Portable Execution, the purpose is it will check what type of application is it like GUI,gif,dll or exe.  In PE Header contain 2 section

.idata and .itext

those 2 section tell that application is either dll file or exe file

CLR Header:-The purpose of clr header is after loading of CLR, CLR will check that managed module meta data token where main method is there

Meta data:-It will contain Methods def, Referenceing assemblies, parameter list etc.

After CLR header section read main method token in meta data read that token method it will extract the stub of msil file convert into native code with the help of JIT

Meta data–>in our vs IDE intellisense will provide by the help of this only

MSIL:-it is intermediate code which is conver into native code by the help of JIT


Actions

Information

Leave a comment