10.07.2015 Views

MPLAB® C30 C 编译器用户指南

MPLAB® C30 C 编译器用户指南

MPLAB® C30 C 编译器用户指南

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.

MPLAB ® <strong>C30</strong> 用 户 指 南built-in function ‘identifier’ declared as non-function指 定 的 函 数 名 与 一 内 建 函 数 名 相 同 , 但 声 明 为 其 他 , 而 没 有 声 明 为 函 数 。CC++ style comments are not allowed in ISO C89使 用 C 形 式 的 注 释 符 “/*” 和 “*/”, 而 不 要 使 用 C++ 形 式 的 注 释 符 “//”。call-clobbered register used for global register variable选 择 一 个 通 常 由 函 数 调 用 保 护 和 恢 复 的 寄 存 器 (W8-W13), 使 库 函 数 不 会 破 坏 它 。cannot inline function ‘main’用 inline 属 性 声 明 了 函 数 “main”。 这 是 不 支 持 的 , 因 为 必 须 从 C 启 动 代 码 调 用 main函 数 , 它 是 单 独 编 译 的 。can’t inline call to ‘identifier’ called from here编 译 器 不 能 内 联 对 指 定 函 数 的 调 用 。case value ‘n’ not in enumerated typeswitch 语 句 的 控 制 表 达 式 是 一 个 枚 举 类 型 , 但 case 表 达 式 具 有 与 任 何 一 个 枚 举 值 都 不对 应 的 值 n。case value ‘value’ not in enumerated type ‘name’“value” 是 另 外 的 switch case, 不 是 枚 举 类 型 “name” 的 元 素 。cast does not match function type函 数 的 返 回 值 类 型 被 强 制 转 换 为 一 个 与 函 数 类 型 不 匹 配 的 类 型 。cast from pointer to integer of different size指 针 被 强 制 转 换 为 非 16 位 宽 的 整 型 。cast increases required alignment of target type当 使 用 -Wcast-align 命 令 行 选 项 编 译 时 , 编 译 器 确 认 强 制 类 型 转 换 不 会 增 加 目 标 类 型所 需 要 的 对 齐 。 例 如 , 如 果 将 指 向 char 的 指 针 强 制 转 换 为 指 向 int 的 指 针 , 会 发 出 这个 警 告 消 息 , 因 为 char 的 对 齐 ( 字 节 对 齐 ) 小 于 int 所 需 的 对 齐 ( 字 对 齐 )。character constant too long字 符 常 量 不 能 太 长 。comma at end of enumerator list枚 举 列 表 的 结 尾 有 多 余 的 逗 号 。comma operator in operand of #if在 #if 伪 指 令 中 , 不 应 有 逗 号 操 作 符 。comparing floating point with == or != is unsafe浮 点 值 可 近 似 为 无 限 精 度 的 实 数 。 不 检 测 其 相 等 性 , 而 使 用 关 系 操 作 符 来 看 两 个 值 的范 围 是 否 重 叠 。comparison between pointer and integer将 指 针 类 型 和 整 型 作 比 较 。DS51284C_CN 第 134 页© 2005 Microchip Technology Inc.

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

Saved successfully!

Ooh no, something went wrong!