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.

编 译 器 命 令 行 选 项• 第 2-111 页 的 --shared• 第 2-112 页 的 --signed_bitfields, --unsigned_bitfields• 第 2-118 页 的 --translate_g++• --translate_gld• 《 链 接 器 参 考 指 南 》 中 第 2-3 页 的 --arm_linux• 《 链 接 器 参 考 指 南 》 中 第 2-33 页 的 --library=name• 《 链 接 器 参 考 指 南 》 中 第 2-51 页的 --[no_]search_dynamic_libraries• 《 应 用 程 序 注 释 212 - 使 用 RVCT 4.0 版 以 及 GNU 工 具 和 库 生 成 Linux 应用 程 序 》(Application Note 212 - Building Linux applications using RVCT v4.0and the GNU Tools and Libraries)。2.1.154 --translate_gld此 选 项 通 过 启 用 GNU 工 具 的 命 令 行 转 换 , 有 助 于 仿 真 GNU ld。用 法您 可 以 使 用 此 选 项 来 提 供 以 下 任 意 项 :• 以 <strong>ARM</strong> Linux 为 目 标 的 完 整 GNU ld 仿 真• 完 整 GNU ld 仿 真 的 子 集 , 表 现 形 式 为 将 各 个 GNU ld 命 令 行 参 数 转 换 为 其RVCT 等 效 项 。要 提 供 完 整 的 GNU ld 仿 真 , 还 必 须 使 用 --arm_linux_config_file。 此 选 项 组 合可 选 择 配 置 文 件 指 定 的 相 应 GNU 头 文 件 和 库 , 并 包 括 对 某 些 缺 省 行 为 的 更 改 。要 将 各 个 GNU ld 命 令 行 参 数 转 换 为 其 RVCT 等 效 项 而 不 以 完 整 的 GNU ld 仿 真为 目 标 , 请 使 用 --translate_gld 仿 真 GNU ld, 但 不 要 与 --arm_linux_config_file一 起 使 用 。 由 于 使 用 此 方 法 时 不 以 完 整 的 GNU ld 仿 真 为 目 标 , 因 此 将 保 留RVCT 缺 省 行 为 , 并 且 不 以 <strong>ARM</strong> Linux 为 目 标 设 置 任 何 缺 省 值 。 RVCT 库 路 径和 选 项 缺 省 值 保 持 不 变 。注 意• 调 用 armcc 时 会 使 用 --translate_gld, 就 像 它 是 GNU 链 接 器 一 样 。 它 仅 用于 直 接 涉 及 GNU 链 接 器 的 现 有 生 成 脚 本 。• 在 gcc 和 g++ 模 式 中 , armcc 使 用 --translate_gld 将 自 身 报 告 为 自 己 所 用 的链 接 器 。 例 如 gcc -print-file-name=ld。2-122 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!