12.07.2015 Views

RealView 编译工具编译器参考指南 - ARM Information Center

RealView 编译工具编译器参考指南 - ARM Information Center

RealView 编译工具编译器参考指南 - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

编 译 器 命 令 行 选 项2.1.2 --allow_null_this, --no_allow_this此 选 项 允 许 或 禁 止 在 空 对 象 指 针 上 调 用 成 员 函 数 。缺 省 设 置缺 省 选 项 为 --no_allow_null_this。2.1.3 --alternative_tokens, --no_alternative_tokens此 选 项 启 用 或 禁 用 C 和 C++ 中 备 选 标 记 的 识 别 功 能 。用 法在 C 和 C++ 中 , 使 用 此 选 项 可 控 制 连 字 的 识 别 。 在 C++ 中 , 使 用 此 选 项 可 控 制运 算 符 关 键 字 ( 如 and 和 bitand) 的 识 别 。缺 省 设 置缺 省 选 项 为 --alternative_tokens。2.1.4 --anachronisms, --no_anachronisms此 选 项 启 用 或 禁 用 C++ 中 的 过 时 特 性 。模 式仅 当 源 语 言 为 C++ 时 , 此 选 项 才 有 效 。缺 省 设 置缺 省 选 项 为 --no_anachronisms。示 例typedef enum { red, white, blue } tricolor;inline tricolor operator++(tricolor c, int){int i = static_cast(c) + 1;return static_cast(i);}void foo(void){tricolor c = red;<strong>ARM</strong> DUI 0348BC Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. 2-3ID090708Non-Confidential, Unrestricted Access

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!