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.

编 译 器 特 有 的 功 能4.3 函 数 属 性可 以 使 用 __attribute__ 关 键 字 指 定 变 量 或 结 构 字 段 、 函 数 和 类 型 的 特 殊 属 性 。此 关 键 字 的 格 式 为 :__attribute__ ((attribute1, attribute2, ...))__attribute__ ((__attribute1__, __attribute2__, ...))例 如 :void * Function_Attributes_malloc_0(int b) __attribute__ ((malloc));static int b __attribute__ ((__unused__));表 4-3 简 要 说 明 了 可 用 函 数 属 性 。表 4-3 编 译 器 支 持 的 函 数 属 性 及 其 等 效 项函 数 属 性非 属 性 等 效 项__attribute__((alias)) -__attribute__((always_inline))__attribute__((const))__forceinline__pure__attribute__((deprecated)) -__attribute__((malloc)) -__attribute__((noinline))__declspec(noinline)__attribute__((no_instrument_function))__attribute__((nomerge)) -__attribute__((nonnull))__attribute__((noreturn))__declspec(noreturn))__attribute__((notailcall)) -__attribute__((pure)) -__attribute__((unused)) -__attribute__((used)) -__attribute__((visibility("visibility_type")))__attribute__((weak))__weak<strong>ARM</strong> DUI 0348BC Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. 4-31ID090708Non-Confidential, Unrestricted Access

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

Saved successfully!

Ooh no, something went wrong!