I'm trying to analyze an assembly to discover if it has the /optimize switch (JIT Optimization) turned on. I know that there is the DebuggableAttribute.IsJITOptimizerDisabled property which works perfectly except when DebugOutput is set to "none" in
which case there are no DebuggableAttributes present in the assembly to analyze! In other words, you can compile an assembly with optimizations enabled/disabled even if DebugOuput is set to "none".
Obviously, the JIT compiler has to be able to detect if it should perform optimizations on the assembly. So, this info must be embedded in the PE image somehow. Any assistance is greatly appreciated!
If this post is helpful, please mark it as such! Dave Black, MCPD, MCTS .NET Solution Architect Black Box Solutions, Inc.
View Complete Post