As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center提供指导。
7年前关闭。
我想知道用于在Visual Studio中为我的C++应用程序生成优化的目标代码的编译器优化策略。
目前,我正在使用默认设置。
7年前关闭。
我想知道用于在Visual Studio中为我的C++应用程序生成优化的目标代码的编译器优化策略。
目前,我正在使用默认设置。
最佳答案
简而言之:/O1和/O2标志是您要使用的主要功能。他们将优化设置为最小化尺寸或最大化速度。
还有很多其他设置,但是除非您真的知道自己已经完成了什么,并且已经过测量,分析和弄清楚更改编译器设置是获得更好性能或提高性能的最佳方法,否则您并不想真正使用这些设置。较小的尺寸。
完整链接位于:http://social.msdn.microsoft.com/forums/en-us/vcgeneral/thread/8931B453-6B0D-46C6-B2C6-EE2BEA2FFB76
关于c++ - Visual Studio中的c++编译器优化技术是什么,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3538168/