This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] PROCESSOR-SDK-AM64X:为什么所有 makefile 中都有-OS 释放模式

Guru**** 2392095 points
Other Parts Discussed in Thread: TMDS64EVM

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1498994/processor-sdk-am64x-why-release-mode-with--os-in-all-makefile

器件型号:PROCESSOR-SDK-AM64X
Thread 中讨论的其他器件:TMDS64EVM

工具/软件:

您好、  

我使用的是 am64x 开发板 tmds64evm。

对于 SDK、我使用 MCU_PLUS_SDK_am64x_09_01_00_41。

如果你看看 makefile ,所有的释放模式构建与-OS。  有理由吗? 我相信它适用于安全关键型软件。  但为什么它不是-O2 或-O3?

CFLAGS_RELEASE :=-OS

您能给我指一下正确的安全文档吗?  例如:出于安全原因、应使用声明操作系统进行优化。   

谢谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Jun、

    OS 优化标志用于优化代码大小 、以  减少 存储器 占用空间。 要了解所有优化选项、请 参阅优化

    此致、

    Tushar