-Ot标志在Visual Studio 2017中代表什么? [英] What does -Ot flag stand for in Visual Studio 2017?

查看:539
本文介绍了-Ot标志在Visual Studio 2017中代表什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到错误 错误'p2'中的错误C1007无法识别标志'-Ot' 但无法在项目的命令行字符串中找到-Ot.谷歌搜索没有帮助.有人知道那个标志代表什么吗?

I am getting error Error C1007 unrecognized flag '-Ot' in 'p2' but unable to find -Ot in the command line string of the project. Googling did not help. Anyone know what does that flag stand for ?

推荐答案

您应该在项目的 Optimization 属性页中找到此标志.

You should find this flag in the Optimization property page of your project.

-Ot(/Ot)选项是常用快速代码标志(尝试改善空间执行时间)

-Ot (/Ot) option is the Favor Fast Code flag (Attempts to offer improvements in execution time over space)

根据Microsoft Visual C ++文档( https://docs.microsoft.com/zh-cn/cpp/build/reference/os-ot-favor-small-code-favor-fast-code ),

According to the Microsoft Visual C++ Documentation (https://docs.microsoft.com/en-us/cpp/build/reference/os-ot-favor-small-code-favor-fast-code),

如果使用/Os或/Ot,则还必须指定/Og以优化 代码.

If you use /Os or /Ot, then you must also specify /Og to optimize the code.

这篇关于-Ot标志在Visual Studio 2017中代表什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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