12.07.2015 Views

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

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

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

语 言 扩 展}u = (foo_t) b ; // automatically equivalent to u.d=b;return u.i;3.7.5 字 符 转 义 序 列在 字 符 串 中 , 转 义 序 列 ‘\e’ 被 视 为 转 义 字 符 (ASCII 27)。示 例void foo(void){printf("Escape sequence is: \e\n");}3.7.6 复 合 文 字与 在 C99 中 一 样 , 支 持 复 合 文 字 。 所 有 复 合 文 字 都 是 左 值 。示 例int y[] = (int []) {1, 2, 3}; // error in strict C99, okay in C99 --gnuint z[] = (int [3]) {1};模 式仅 在 C90 和 C99 的 GNU 模 式 下 支 持 。注 意也 可 以 在 C99 中 将 复 合 文 字 用 作 初 始 值 设 定 项 。 但 是 , 编 译 器 对 在 GNU 模 式 下视 为 初 始 值 设 定 项 的 复 合 文 字 的 要 求 比 编 译 C99 源 代 码 时 的 要 求 宽 松 一 些 。3.7.7 条 件 语 句如 果 结 果 与 测 试 相 同 , 则 条 件 语 句 中 的 中 间 操 作 数 可 以 忽 略 。例 如 :示 例以 下 语 句 是 等 效 的 :c = i ? : j; // middle operand omittedc = i ? i : j;<strong>ARM</strong> DUI 0348BC Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. 3-25ID090708Non-Confidential, Unrestricted Access

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

Saved successfully!

Ooh no, something went wrong!