12.07.2015 Views

RealView - ARM Information Center

RealView - ARM Information Center

RealView - ARM Information Center

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

使 用 分 散 加 载 描 述 文 件*+RO}}LR2 0x100000{ER2 (ImageLimit(ER1)){*(+RW +ZI)}}; Place ER2 after ER1 has finished示 例 5-5 将 基 于 符 号 是 否 存 在 的 基 址 作 为 条 件LR1 0x8000{ER1 (defined(version1) ? 0x8000 : 0x10000)}{*(+RO)}ER2 +0{*(+RW +ZI)}; Base address is 0x8000; if version1 is defined; 0x10000 if not示 例 5-6 中 使 用 预 处 理 器 宏 和 表 达 式 组 合 , 将 紧 密 压 缩 的 执 行 区 复 制 到 页 面 边 界上 的 执 行 地 址 。 通 过 使 用 ALIGN 分 散 加 载 关 键 字 , 可 以 将 ER2 和 ER3 的 加 载 地 址 以及 执 行 地 址 对 齐 。示 例 5-6 在 执 行 空 间 中 对 齐 基 址 , 但 在 加 载 空 间 中 仍 紧 密 压 缩#! armcc -E#DEFINE START_ADDRESS 0x100000#DEFINE PAGE_ALIGNMENT 0x100000#DEFINE MY_ALIGN(address, alignment) ((address +(alignment-1)) AND ~(alignment-1))LR1 0x8000{ER0 +0{<strong>ARM</strong> DUI 0349AC 版 权 所 有 © 2007 <strong>ARM</strong> 公 司 。 保 留 所 有 权 利 。 5-29

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

Saved successfully!

Ooh no, something went wrong!