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.

编 译 器 特 有 的 功 能{}S s;f();另 请 参 阅• 第 2-57 页 的 --force_new_nothrow, --no_force_new_nothrow• 第 5-13 页 的 使 用 ::operator new 函 数4.2.6 __declspec(notshared)__declspec(notshared) 属 性 可 防 止 从 特 定 类 导 出 虚 拟 函 数 表 和 RTTI。 这 将 一 直保 持 为 真 , 而 与 应 用 的 其 他 选 项 无 关 。 例 如 , 使 用 --export_all_vtbl 不 会 覆 盖__declspec(notshared)。示 例struct __declspec(notshared) X{virtual int f();}; // do not export thisint X::f(){return 1;}struct Y : X{virtual int g();}; // do export thisint Y::g(){return 1;}4.2.7 __declspec(thread)__declspec(thread) 属 性 指 明 变 量 是 线 程 局 部 变 量 并 具 有 线 程 存 储 时 限 , 以 便 链接 器 安 排 在 创 建 线 程 时 自 动 分 配 的 存 储 。注 意支 持 将 __thread 关 键 字 作 为 __declspec(thread) 的 同 义 词 。<strong>ARM</strong> DUI 0348BC Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. 4-29ID090708Non-Confidential, Unrestricted Access

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

Saved successfully!

Ooh no, something went wrong!