JIT question

  • Thread starter Thread starter Manco
  • Start date Start date
M

Manco

When you compile a DLL or EXE from VS.NET, does it by default compile the
code into MSIL and then during execution the methods are individual JITed? I
thought the default was to compile to native x86 code on Windows. But then
what I've done is use the ILDASM to examine a PE I produced, and I was able
to view the CIL, which implies that the default is to produce CIL, unless
some switch is specified?
 
Manco said:
When you compile a DLL or EXE from VS.NET, does it by default compile the
code into MSIL and then during execution the methods are individual JITed? I
thought the default was to compile to native x86 code on Windows. But then
what I've done is use the ILDASM to examine a PE I produced, and I was able
to view the CIL, which implies that the default is to produce CIL, unless
some switch is specified?

It will produce CIL whatever switch you use (unless you're talking
about unmanaged C++, of course). You can use ngen to generate a native
image too, but that still requires the CIL assembly to be present.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top