pure mode versus mixed mode

  • Thread starter Thread starter cronusf
  • Start date Start date
C

cronusf

I do not get the difference between these two modes. I read that pure
mode produces code that uses IL instructions only. Does that mean a
mixed mode EXE might have native code and IL code? How does that
work?

Is the following correct:

1. In pure mode: If you have managed classes and native code
(unmanaged classes), it all gets compiled to IL.

2. In mixed mode: If you have managed classes and unmanaged classes,
the managed classes compile to IL and the unmanaged classes get
compiled to native code.
 
I do not get the difference between these two modes. I read that pure
mode produces code that uses IL instructions only. Does that mean a
mixed mode EXE might have native code and IL code?
Yes.

How does that work?

I don't know the details, I've never needed to know, it just works!
Is the following correct:

1. In pure mode: If you have managed classes and native code
(unmanaged classes), it all gets compiled to IL.

There are restrictions on "pure". Have a look at the MSDN topics
titled "Mixed, Pure, and Verifiable Feature Comparison " & "Converting
Projects from Mixed Mode to Pure Intermediate Language".
2. In mixed mode: If you have managed classes and unmanaged classes,
the managed classes compile to IL and the unmanaged classes get
compiled to native code.

Yes.

Dave
 
Back
Top