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.

使 用 分 散 加 载 描 述 文 件5.1.6 具 有 复 杂 内 存 映 射 的 映 像图 5-3 中 的 分 散 加 载 描 述 将 program1.o 和 program2.o 文 件 中 的 段 加 载 到 内 存 中 ,它 与 第 5-8 页 的 图 5-4 中 所 示 的 映 射 相 对 应 。与 第 5-6 页 的 图 5-2 中 所 示 的 简 单 内 存 映 射 不 同 , 不 能 只 通 过 使 用 基 本 命 令 行 选项 为 链 接 器 指 定 此 应 用 程 序 。小 心图 5-3 中 的 分 散 加 载 描 述 仅 指 定 program1.o 和 program2.o 的 代 码 和 数 据 位 置 。 如果 链 接 其 他 模 块 ( 如 program3.o) 并 使 用 此 描 述 文 件 , 则 不 会 指 定 program3.o 的 代码 和 数 据 位 置 。除 非 对 代 码 和 数 据 位 置 的 要 求 非 常 严 格 , 否 则 建 议 使 用 * 或 .ANY 说 明 符 来 放 置其 余 代 码 和 数 据 。 有 关 详 细 信 息 , 请 参 阅 第 5-33 页 的 将 区 放 在 固 定 地 址 中 。LOAD_ROM_1 0x0000{EXEC_ROM_1 0x0000{program1.o (+RO)}}DRAM 0x18000 0x8000{program1.o (+RW,+ZI)}LOAD_ROM_2 0x4000{EXEC_ROM_2 0x4000{program2.o (+RO)}Start address for first load regionStart address for first exec regionPlace all code and RO data fromprogram1.o into this exec regionStart address for this exec regionMaximum size of this exec regionPlace all RW and ZI data fromprogram1.o into this exec regionStart address for second load regionPlace all code and RO data fromprogram2.o into this exec region}SRAM 0x8000 0x8000{program2.o (+RW,+ZI)}Place all RW and ZI data fromprogram2.o into this exec region图 5-3 分 散 加 载 描 述 文 件 中 的 复 杂 内 存 映 射<strong>ARM</strong> DUI 0349AC 版 权 所 有 © 2007 <strong>ARM</strong> 公 司 。 保 留 所 有 权 利 。 5-7

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

Saved successfully!

Ooh no, something went wrong!