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.

语 言 扩 展在 非 GNU 模 式 下 , 忽 略 extern, 并 且 功 能 与 C++ 的 inline foo() 相同 。 在 C 中 , 必 须 使 用 __inline。 有 关 详 细 信 息 , 请 参 阅 第 5-18 页的 外 部 内 联 函 数 。模 式仅 在 C90 的 GNU 模 式 下 支 持 。3.7.12 标 签 用 作 值编 译 器 支 持 使 用 && 运 算 符 将 GCC 用 作 值 。模 式在 C 和 C++ 的 GNU 模 式 下 支 持 。示 例标 签 表 :int f(int n){void *const table[] = { &&a1, &&a2};goto *table[n];a1: return 1;a2: return 2;}用 于 表 示 继 续 的 标 签 :void *toggle(void *lab, int *x){if (lab) goto *lab;a1: *x = 1; return &&a2;a2: *x = 0; return &&a1;}3.7.13 指 针 算 法可 以 执 行 有 关 void 指 针 和 函 数 指 针 的 算 法 。void 类 型 或 函 数 类 型 的 大 小 被 定 义 为 1。3-28 Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0348BCNon-Confidential, Unrestricted AccessID090708

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

Saved successfully!

Ooh no, something went wrong!