.NET MSIL, Native and PE files

Correct if I am wrong, the MSIL file is also considered the PE file. And the Native code file is created by the JIT using the MSIL (same as PE File), correct?
Lawrence AverySystem DeveloperAsked:
Who is Participating?
 
Rainer JeschorCommented:
Not fully: a PE file contains the MSIL in one part BUT also the relevant meta data in another section. Therefore MSIL is just a subset of the PE file.
http://msdn.microsoft.com/en-us/library/8dkk3ek4%28v=vs.71%29.aspx
0
 
käµfm³d 👽Commented:
I think technically speaking you wouldn't call it an "MSIL file," but yes you are correct: A managed module contains a PE file header and IL code. The JITter compiles the MSIL on-the-fly and on demand (as necessary).

Per Jeffrey Richter's CLR via C#, 4th ed., chapter 1.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.