12.07.2015 Views

RealView - ARM Information Center

RealView - ARM Information Center

RealView - ARM Information Center

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

使 用 分 散 加 载 描 述 文 件有 关 详 细 信 息 , 请 参 阅 :• 《 库 和 浮 点 支 持 指 南 》 中 的 第 2 章 C 和 C++ 库 , 以 了 解 有 关 库 内 存 模 型 的详 细 信 息• 《 开 发 指 南 》 中 的 第 2 章 嵌 入 式 软 件 开 发 。5.1.2 使 用 分 散 加 载 描 述 文 件 指 定 堆 栈 和 堆<strong>ARM</strong> C 库 提 供 了 替 代 的 __user_initial_stackheap() 函 数 实 现 , 可 以 通 过 分 散 加载 描 述 文 件 中 给 出 的 信 息 自 动 选 择 正 确 的 函 数 实 现 。要 选 择 两 个 区 内 存 模 型 , 请 在 分 散 加 载 描 述 文 件 中 定 义 两 个 名 为 <strong>ARM</strong>_LIB_HEAP 和<strong>ARM</strong>_LIB_STACK 的 特 殊 执 行 区 。 两 个 区 均 具 有 EMPTY 属 性 。 这 导 致 库 选 择 使 用 以 下符 号 值 的 非 缺 省 __user_initial_stackheap() 实 现 :• Image$$<strong>ARM</strong>_LIB_STACK$$Base• Image$$<strong>ARM</strong>_LIB_STACK$$ZI$$Limit• Image$$<strong>ARM</strong>_LIB_HEAP$$Base• Image$$<strong>ARM</strong>_LIB_HEAP$$ZI$$Limit只 能 指 定 一 个 <strong>ARM</strong>_LIB_STACK 或 <strong>ARM</strong>_LIB_HEAP 区 , 并 且 必 须 分 配 大 小 , 例 如 :<strong>ARM</strong>_LIB_HEAP 0x20100000 EMPTY 0x100000-0x8000<strong>ARM</strong>_LIB_STACK 0x20200000 EMPTY -0x8000; Heap starts at 1MB; and grows upwards; Stack space starts at the end; of the 2MB of RAM; And grows downwards for 32KB可 以 使 用 EMPTY 属 性 定 义 单 个 名 为 <strong>ARM</strong>_LIB_STACKHEAP 的 执 行 区 , 强 制__user_initial_stackheap() 使 用 合 并 的 堆 栈 / 堆 区 。 这 导 致__user_initial_stackheap() 使 用 符 号 Image$$<strong>ARM</strong>_LIB_STACKHEAP$$Base 和Image$$<strong>ARM</strong>_LIB_STACKHEAP$$ZI$$Limit 的 值 。注 意如 果 重 新 实 现 __user_initial_stackheap(), 这 将 覆 盖 所 有 库 实 现 。<strong>ARM</strong> DUI 0349AC 版 权 所 有 © 2007 <strong>ARM</strong> 公 司 。 保 留 所 有 权 利 。 5-3

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

Saved successfully!

Ooh no, something went wrong!