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.
 
Back
Top