更新时间:2023-11-10 16:30:16
简而言之: / O1和/ O2标志。他们设置优化以最小化大小或最大化速度。
In short: the main things you would want to play around with are the /O1 and /O2 flags. They set the optimization to either minimize size or maximize speed.
还有一些其他设置,但是你不想真正地玩这些,除非你真的知道你做了什么,已经测量,分析和发现更改编译器设置是获得更好的性能或更小的大小的***方式。
There are a bunch of other settings but you don't really want to be playing around with these unless you really know what you are done and have already measured, profiled and figured out that changing compiler settings is the best way to get better perf or smaller size.
完整链接: http://social.msdn.microsoft.com/forums/en-us/vcgeneral/螺纹/ 8931B453-6B0D-46C6-B2C6-EE2BEA2FFB76