• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 389
  • Last Modified:

.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?
0
metro156
Asked:
metro156
2 Solutions
 
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
 
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

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now