none
Is it possible to produce only IL code in the Managed Module ? RRS feed

  • Question

  • Hello,

    a managed module produced by a CLR compliant compiler contains PE32 (or PE32+) header,CLR header, Metadata and IL code . But are these contents optional ?Means is it possible that some managed module contains only IL code ? Or some managed module contains only Metadata ?

    If some contents are optional then in which condition a compiler produces those optional contents ?

    Friday, October 7, 2011 2:32 PM

Answers

All replies

  • Hello,

    the basic reason behind such stupid question is these statements given in the famous book CLR via C#

    Table 1-1 Parts of a Managed Module :

    For modules
    that contain only IL code, the bulk of the information in the PE32(+)
    header is ignored. For modules that contain native CPU code, this
    header contains information about the native CPU code.

    So, i wanted to know in which condition a module contains only IL code ?

    In which condition a module contains only native CPU code ?

    Friday, October 7, 2011 5:15 PM
  • Probably, next i would like to know , then why bulk of the information in the PE32(+) header is ignored ?
    And then i would like to know why writer has said information in PE32(+) header is ignored , why not PE32 header ?

    Why writer has specifically said about PE32(+) header , why not about PE32 header ?

    Friday, October 7, 2011 5:20 PM
  • Read The .NET File Format article at CodeProject to know more about .NET Assemblies!
    Any fool can know. The point is to understand.(Albert Einstein)
    • Proposed as answer by Paul Zhou Wednesday, October 12, 2011 6:45 AM
    • Marked as answer by Paul Zhou Monday, October 17, 2011 6:25 AM
    Friday, October 7, 2011 7:24 PM