Does C# compiler /optimize command line option affect JITter?

坚强是说给别人听的谎言 提交于 2019-12-05 09:17:20
Bryan Crosby

Is there any reference that can confirm or otherwise if this option does indeed affect JITter?

According to Jeffrey Richter in his CLR via C# book, 3rd edition (chapter 1, page 13), it does. The /optimize+ switch will result in optimizations for C# IL code, as well as the native code generated by the JIT compiler. As to how it actually does that, I'm not sure. My wild guess is that it might have something to do with the CorDebugJITCompilerFlags enumeration.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!