tags:

views:

218

answers:

2

Hi

Is there a way to complie code directly into MSIL rather than Native Code. so that we can bypass JIT while executing the code on machine. If its possible. Please let me know the technique also.

Thanks

+1  A: 

In the .NET languages I'm familiar with, the source is compiled directly to MSIL. What the JIT does is subsequently compile the IL code to native code.

Michiel Buddingh'
+1  A: 

Compiling MSIL to Native Code Ngen.exe

SUMMARY:

The runtime supplies another mode of compilation called install-time code generation. The install-time code generation mode converts MSIL to native code just as the regular JIT compiler does, but it converts larger units of code at a time, storing the resulting native code for use when the assembly is subsequently loaded and run. When using install-time code generation, the entire assembly that is being installed is converted into native code, taking into account what is known about other assemblies that are already installed.

Take look at - http://stackoverflow.com/questions/45702/is-there-some-way-to-compile-a-net-application-to-native-code

adatapost