How to Modifies code generation for just-in-time (JIT) using code

23 בדצמבר 2008

tags: , ,
one comment

Hi all,


Did you know that you can control JIT code generation using code? Well you can.


You can use the .NET DebuggableAttribute. The DebuggableAttribute controls how the runtime treats code within the module. The runtime might track extra information about generated code, and it might disable certain optimizations based on the values contained within this attribute.


How to use:


On your AssembllyInfo.cs file you can add the code: [assembly: System.Diagnostics.Debuggable(false, false)]


First boolean (IsJITTrackingEnabled) – Gets a value that indicates whether the runtime will track information during code generation for the debugger.


Second boolean (IsJITOptimizerDisabled) – Gets a value that indicates whether the runtime optimizer is disabled.

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

one comment

  1. Shlomo23 בדצמבר 2008 ב 9:37

    תודה רבה

    Reply