Three way to perform JIT compilation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
as i read in .NET docs, there are three possibilities when to perform JIT,
but i can't find how make it. How? Does Visual Studio support JIT at program
startup or when installing application?
Thanks for any help...
 
On full .NET Framework IL code can be compiled:
- per method
- on startup (whole assembly is compiled to natice code on PE execution)
- before installing program (using ngen tool)

As written on page you referenced, only JIT per method is now supported.
Is there any hope that it will change in future?
 
Is there any hope that it will change in future?
Not with CF 2.0 but for the future there is hope according to this MSFT
quote:

" Pre-JIT compiled code is not feasible on the device currently because
there is limited storage and native code is approximately 3 times the size
of MSIL. As storage becomes more prevalent, we will need to reconsider if we
can persist JIT compiled code on the device. "
Scott Holden -
http://blogs.msdn.com/scottholden/archive/2005/01/05/346770.aspx

Cheers
Daniel
 
Wow!
As you wrote that native code is 3 time larger than MSIL, I looked at the
size of assemblies my project consist of and found that it takes over
1.5MB(debug version). Now i understand why ngen is not supported and that
performing JIT of whole MSIL code at application startup is even impossible.
Thank you for that information...
 
Back
Top