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.

编 译 器 命 令 行 选 项示 例在 Windows 系 统 上 , 编 译 包 含 以 下 一 行 的 main.c 文 件 :#include "..\include\header files\common.h"上 述 编 译 是 使 用 --depend=depend.txt --depend_format=unix_escaped 选 项 执 行 的 ,这 会 生 成 一 个 包 含 下 列 条 目 的 相 关 性 文 件 depend.txt:main.axf: main.cmain.axf: ../include/header\ files/common.h另 请 参 阅• 第 2-39 页 的 --depend=filename• --depend_system_headers, --no_depend_system_headers• 第 2-42 页 的 --depend_target=target• 第 2-70 页 的 --ignore_missing_headers• 第 2-86 页 的 -M• 第 2-87 页 的 --md• 第 2-101 页 的 --phony_targets2.1.43 --depend_system_headers, --no_depend_system_headers使 用 -M 选 项 或 --md 选 项 生 成 makefile 相 关 性 信 息 时 , 此 选 项 用 于 启 用 或 禁 用 系统 包 含 相 关 性 行 的 输 出 。缺 省 设 置缺 省 选 项 为 --depend_system_headers。示 例/* hello.c */#include int main(void){printf("Hello, world!\n");return 0;}用 -M 选 项 编 译 此 代 码 时 , 所 生 成 的 结 果 如 下 :__image.axf: hello.c__image.axf: ...\include\...\stdio.h<strong>ARM</strong> DUI 0348BC Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. 2-41ID090708Non-Confidential, Unrestricted Access

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

Saved successfully!

Ooh no, something went wrong!