pure mode versus mixed mode

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.
 
D

David Lowndes

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
 

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

Top