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.

编 译 器 命 令 行 选 项注 意• 当 对 不 具 备 未 对 齐 访 问 的 硬 件 支 持 的 CPU ( 如 v6 以 前 版 本 的 体 系 结 构 )进 行 编 译 时 , 代 码 大 小 可 能 会 显 著 增 加 。• 此 选 项 既 不 影 响 对 象 在 内 存 中 的 放 置 , 也 不 影 响 结 构 的 布 局 与 填 充 。另 请 参 阅• 第 4-11 页 的 __packed• 第 4-65 页 的 #pragma pack(n)• 《 编 译 器 用 户 指 南 》 中 第 5-23 页 的 对 齐 数 据 。2.1.129 --preinclude=filename此 选 项 指 示 编 译 器 在 编 译 开 头 包 括 指 定 文 件 的 源 代 码 。语 法--preinclude=filename其 中 :filename 是 要 包 含 其 源 代 码 的 文 件 的 名 称 。用 法此 选 项 可 用 于 建 立 标 准 宏 定 义 。 在 包 含 搜 索 列 表 上 的 目 录 中 搜 索 filename。可 以 在 命 令 行 上 重 复 指 定 此 选 项 。 此 结 果 按 照 指 定 的 顺 序 预 先 包 括 在 文 件 中 。示 例armcc --preinclude file1.h --preinclude file2.h -c source.c另 请 参 阅• 第 2-69 页 的 -Idir[,dir,...]• 第 2-76 页 的 -Jdir[,dir,...]• 第 2-76 页 的 --kandr_include• 第 2-117 页 的 --sys_include• 《 编 译 器 用 户 指 南 》 中 第 2-15 页 的 头 文 件<strong>ARM</strong> DUI 0348BC Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. 2-103ID090708Non-Confidential, Unrestricted Access

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

Saved successfully!

Ooh no, something went wrong!