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.

编 译 器 命 令 行 选 项用 法编 译 器 在 优 化 级 别 -O3 -Otime ( 如 循 环 展 开 ) 进 行 编 译 时 , 会 执 行 某 些 高 级 向 量和 标 量 优 化 。 使 用 此 选 项 可 显 示 与 这 些 高 级 优 化 相 关 的 诊 断 消 息 。示 例int factorial(int n){int result=1;while (n > 0)result *= n--;return result;}用 --vectorize --cpu=Cortex-A8 -O3 -Otime --diag_warning=optimizations 选 项 编 译此 代 码 时 , 会 生 成 优 化 警 告 消 息 。另 请 参 阅• 第 2-47 页 的 --diag_suppress=optimizations• 第 2-48 页 的 --diag_warning=tag[,tag,...]• 第 2-94 页 的 -Onum• 第 2-96 页 的 -Otime2.1.54 --dllexport_all, --no_dllexport_all此 选 项 使 您 可 以 控 制 生 成 DLL 时 的 符 号 可 见 性 。缺 省 设 置缺 省 为 --no_dllexport_all。用 法使 用 --dllexport_all 选 项 可 将 所 有 extern 定 义 标 记 为 __declspec(dllexport)。另 请 参 阅• 第 2-4 页 的 --apcs=qualifer...qualifier• 第 4-24 页 的 __declspec(dllexport)<strong>ARM</strong> DUI 0348BC Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. 2-49ID090708Non-Confidential, Unrestricted Access

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

Saved successfully!

Ooh no, something went wrong!