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.

语 言 扩 展• 可 以 分 配 指 向 不 同 函 数 类 型 的 指 针 , 或 者 进 行 相 等 (==) 或 不 相 等 (!=) 比较 , 而 无 需 进 行 显 式 类 型 转 换 。 发 出 警 告 或 错 误 。在 C++ 模 式 下 , 禁 止 使 用 该 扩 展 。• 可 以 将 指 向 void 的 指 针 隐 式 转 换 为 指 向 函 数 类 型 的 指 针 , 反 之 亦 然 。• 在 初 始 值 设 定 项 中 , 如 果 整 型 足 够 大 以 包 含 某 个 指 针 常 数 值 , 则 可 以 将 其转 换 为 整 型 。• 如 果 数 组 带 有 下 标 或 以 类 似 方 式 使 用 , 则 会 将 非 左 值 的 数 组 表 达 式 转 换 为指 向 数 组 中 的 第 一 个 元 素 的 指 针 。3.4.3 块 范 围 函 数 声 明支 持 以 下 两 个 块 范 围 函 数 声 明 扩 展 :• 块 范 围 函 数 声 明 还 在 文 件 范 围 内 声 明 函 数 名 称• 块 范 围 函 数 声 明 可 能 具 有 静 态 存 储 类 , 因 而 导 致 产 生 的 声 明 缺 省 具 有 内 部链 接 。示 例void f1(void){static void g(void); /* static function declared in local scope *//* use of static keyword is illegal in strict ISO C */}void f2(void){g(); /* uses previous local declaration */}static void g(int i){ } /* error - conflicts with previous declaration of g */<strong>ARM</strong> DUI 0348BC Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. 3-11ID090708Non-Confidential, Unrestricted Access

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

Saved successfully!

Ooh no, something went wrong!