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.

编 译 器 特 有 的 功 能其 中 :ptr 指 向 要 从 内 存 中 加 载 的 数 据 的 地 址 。 要 指 定 所 加 载 的 数 据 大 小 ,请 将 参 数 类 型 转 换 为 相 应 的 整 型 。表 4-10 __ldrt 内 在 函 数 支 持 的 访 问 宽 度指 令 a加 载 的 数 据 大 小C 类 型 转 换LDRSBT 有 符 号 字 节 (signed char *)LDRBT 无 符 号 字 节 (char *)LDRSHT 有 符 号 半 字 (signed short int *)LDRHT 无 符 号 半 字 (short int *)LDRT 字 (int *)a. 或 等 效 。返 回 值__ldrt 内 在 函 数 返 回 从 ptr 指 向 的 内 存 地 址 中 加 载 的 数 据 。错 误为 不 支 持 LDRT 指 令 的 目 标 进 行 编 译 时 , 编 译 器 无 法 识 别 __ldrt 内 在 函 数 。 在 这种 情 况 下 , 编 译 器 将 生 成 警 告 或 错 误 。__ldrt 内 在 函 数 不 支 持 对 双 字 数 据 的 访 问 。 如 果 指 定 了 不 支 持 的 访 问 宽 度 , 编译 器 将 生 成 错 误 。示 例int foo(void){int loc = 0xff;return __ldrt((const volatile int *)loc);}使 用 缺 省 选 项 编 译 此 代 码 时 , 将 生 成 以 下 内 容 :||foo|| PROCMOVLDRBTMOVr0,#0xffr1,[r0],#0r2,#0x1004-82 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!