English 中文(简体)
D. 侦查JIT 优化或忽略优化
原标题:Detecting JIT Optimizations or missed Optimizations

The .NET CLR JIT will; to my Understanding;tries to better code using patterns, such as Method Inlining,Loop Unrolling. 如果采用方法,则出于以下原因不能这样做:

  • Methods that are greater than 32 bytes of IL will not be inlined.
  • Virtual functions are not inlined.
  • Methods that have complex flow control will not be in-lined. Complex flow control is any flow control other than if/then/else; in this case, switch or while.
  • Methods that contain exception-handling blocks are not inlined, though methods that throw exceptions are still candidates for inlining.
  • If any of the method s formal arguments are structs, the method will not be inlined.
  • Etc...

我的问题是...... 是否有办法查明联合技术优化程序决定如何为这些或其他原因ski?

我认为,我想知道需要调整哪些法典领域,以确保我能够利用最佳联合技术。

问题回答

现在,你可以自行操作<代码>。 CoreCLR,收集了你想要的所有统计数据。 您可审查clrconfig Values.h,并使任何旗帜都能获得任何相关信息(例如,JitDump,使用 快速指挥)。

这并非易事,而是可能的。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签