优化代码有什么作用? [英] What are the effect Optimize Code?

查看:82
本文介绍了优化代码有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道优化代码的作用并将其部署到Windows Mobile设备.我使用的是VS2005,应用程序使用的是C#代码.优化只是行之有效,您可以使用它,也可以不使用它,但是您不能对它做任何其他事情.对于介绍,请从这里开始:
http://en.wikipedia.org/wiki/Code_optimization [ http://msdn.microsoft .com/en-us/library/f7dy01k1.aspx [ ^ ].

要分析结果,您需要非常熟悉CIL(通用中间语言),这不是一件容易的事.请参阅 http://en.wikipedia.org/wiki/Common_Intermediate_Language [ 解决方案

Not clear how can it help you except pure academic interest, which is itself very good though. Optimization just works, you can use it or not, but you cannot do anything else about it. For the introduction, start here:
http://en.wikipedia.org/wiki/Code_optimization[^].

You can get detailed answer to particular optimization methods applied to your code, if you compile you solution with optimization and without it, disassemble the code and compare the results. To disassemble your compiled (MSIL) code, use the disassember Ildasm.exe, see http://msdn.microsoft.com/en-us/library/f7dy01k1.aspx[^].

To analyze the results, you would need pretty good knowledge of CIL (Common Intermediate Language), which is not a very trivial thing. Please see http://en.wikipedia.org/wiki/Common_Intermediate_Language[^].

—SA


这篇关于优化代码有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆