none
JIT-compiler options RRS feed

  • Question

  • How does JIT tracking and optimization work in a mix-mode application?

     

    Do I create a MyExeApp.ini that covers all loaded assemblies or do I create a MyManagedDll.ini for each assembly with the below content?

    [.NET Framework Debugging Control]
    GenerateTrackingInfo=1
    AllowOptimize=0

     

    Does this work for all clr versions ?

     

    Cheers

    Thursday, April 24, 2008 8:09 PM

Answers

  • AFAIK you should create a MyExeApp.ini because it affects the CLR when it loads into the process.  However, you can always check for yourself.  For example, compile the app as Release with AllowOptimize=0 and then see if method inlining happens, for example.

    For more details: http://blogs.microsoft.co.il/blogs/sasha/archive/2007/08/12/JIT-Optimizations_2C00_-Inlining_2C00_-and-Interface-Method-Dispatching-_2800_Part-2-of-N_2900_.aspx
    Friday, April 25, 2008 10:59 AM