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.

编 译 器 特 有 的 功 能}aLocal += Function_Attributes_const_0(b);return aLocal;在 此 代 码 中 , 只 能 调 用 一 次 Function_Attributes_const_0, 并 将 结 果 加 倍 以 获 得正 确 的 返 回 值 。另 请 参 阅• 第 4-37 页 的 __attribute__((pure))• 《 编 译 器 用 户 指 南 》 中 第 5-13 页 的 __pure。4.3.4 __attribute__((deprecated))此 函 数 属 性 指 示 存 在 某 个 函 数 , 但 如 果 使 用 这 个 不 提 倡 使 用 的 函 数 , 编 译 器 必须 生 成 警 告 。注 意此 函 数 属 性 是 <strong>ARM</strong> 编 译 器 支 持 的 GNU 编 译 器 扩 展 。示 例int Function_Attributes_deprecated_0(int b) __attribute__ ((deprecated));4.3.5 __attribute__((malloc))此 函 数 属 性 指 示 可 以 像 malloc 一 样 处 理 函 数 , 并 且 可 执 行 关 联 的 优 化 。注 意此 函 数 属 性 是 <strong>ARM</strong> 编 译 器 支 持 的 GNU 编 译 器 扩 展 。示 例void * Function_Attributes_malloc_0(int b) __attribute__ ((malloc));4-34 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!