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.

编 译 器 特 有 的 功 能4.6.17 #pragma Ospace此 编 译 指 示 指 示 编 译 器 执 行 优 化 以 减 小 映 像 大 小 , 但 可 能 会 以 延 长 执 行 时 间 为代 价 。另 请 参 阅• #pragma Otime• 第 2-96 页 的 -Ospace4.6.18 #pragma Otime此 编 译 指 示 指 示 编 译 器 执 行 优 化 以 缩 短 执 行 时 间 , 但 可 能 会 以 增 加 映 像 大 小 为代 价 。另 请 参 阅• #pragma Ospace• 第 2-97 页 的 -Otime4.6.19 #pragma pack(n)此 编 译 指 示 将 结 构 成 员 对 齐 到 n 和 这 些 成 员 的 自 然 对 齐 边 界 中 的 较 小 值 。 压 缩对 象 是 通 过 未 对 齐 访 问 读 取 和 写 入 的 。语 法#pragma pack(n)其 中 :n 是 以 字 节 为 单 位 的 对 齐 , 有 效 的 对 齐 值 为 1、 2、 4 和 8。缺 省 设 置缺 省 值 为 #pragma pack(8)。示 例该 示 例 演 示 pack(2) 如 何 将 整 数 变 量 b 对 齐 到 2 字 节 边 界 。typedef struct{char a;int b;<strong>ARM</strong> DUI 0348BC Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. 4-65ID090708Non-Confidential, Unrestricted Access

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

Saved successfully!

Ooh no, something went wrong!