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.7.27 __rev此 内 在 函 数 在 编 译 器 生 成 的 指 令 流 中 插 入 REV 指 令 或 等 效 的 代 码 序 列 。 它 允 许从 C 或 C++ 代 码 中 将 32 位 大 端 数 据 值 转 换 为 小 端 数 据 值 , 或 者 将 32 位 小 端 数据 值 转 换 为 大 端 数 据 值 。注 意当 编 译 器 识 别 某 些 表 达 式 后 , 将 自 动 引 入 REV。语 法unsigned int __rev(unsigned int val)其 中 :val是 一 个 unsigned int。返 回 值__rev 内 在 函 数 通 过 颠 倒 val 字 节 顺 序 返 回 从 中 获 取 的 值 。另 请 参 阅• 《 汇 编 器 指 南 》 中 第 4-63 页 的 REV、 REV16、 REVSH 和 RBIT。4.7.28 __return_address此 内 在 函 数 返 回 当 前 函 数 的 返 回 地 址 。语 法unsigned int __return_address(void)返 回 值__return_address 内 在 函 数 返 回 在 从 当 前 函 数 返 回 时 使 用 的 链 接 寄 存 器 的 值 。<strong>ARM</strong> DUI 0348BC Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. 4-89ID090708Non-Confidential, Unrestricted Access

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

Saved successfully!

Ooh no, something went wrong!