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.5 变 量 属 性可 以 使 用 __attribute__ 关 键 字 指 定 变 量 或 结 构 字 段 、 函 数 和 类 型 的 特 殊 属 性 。此 关 键 字 的 格 式 为 :__attribute__ ((attribute1, attribute2, ...))__attribute__ ((__attribute1__, __attribute2__, ...))例 如 :void * Function_Attributes_malloc_0(int b) __attribute__ ((malloc));static int b __attribute__ ((__unused__));第 4-31 页 的 表 4-3 简 要 说 明 了 可 用 变 量 属 性 。表 4-5 编 译 器 支 持 的 变 量 属 性 及 其 等 效 项变 量 属 性非 属 性 等 效 项__attribute__((alias)) -__attribute__((at(address))) -__attribute__((aligned)) -__attribute__((deprecated)) -__attribute__((packed)) -__attribute__((section(“name”))) -__attribute__((transparent_union)) -__attribute__((unused)) -__attribute__((used)) -__attribute__((weak))__weak__attribute__((visibility("visibility_type")))__attribute__((zeroinit)) -4-46 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!