声明:
1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。
2、请勿用于商业用途。
3、英文来自:http://www.keil.com/support/man/docs/c51/。
4、欢迎大家共同与我交流探讨(290207203@qq.com)。
NOCOND Compiler Directive
| Abbreviation | NOCO |
| Arguments | None. |
| Default | COND |
| µVision | Options — Listing — C Compiler Listing — Conditional. |
| Description | The NOCOND directive excludes lines omitted from compilation from the listing file. |
| See Also | |
| Example | The following example shows the listing file for a source file compiled with the NOCONDdirective: .
.
.
stmt level source
1 extern unsigned char a, b;
2 unsigned char c;
3
4 main()
5 {
6 1 #if defined (VAX)
9 1 b = 14;
10 1 a = 15;
11 1 #endif
12 1 }
.
.
. |
NOCOND 编译器伪指令
| 缩写 | NOCO |
| 参数 | 无。 |
| 缺省 | COND |
| µVision | Options — Listing — C Compiler Listing — Conditional. |
| 描述 | NOCOND 伪指令指示列表文件不包含编译忽略的行。 |
| 参考 | |
| 示例 | 下面的示例显示使用NOCOND伪指令编译的源文件生成的列表文件: .
.
.
stmt level source
1 extern unsigned char a, b;
2 unsigned char c;
3
4 main()
5 {
6 1 #if defined (VAX)
9 1 b = 14;
10 1 a = 15;
11 1 #endif
12 1 }
.
.
. |
本文介绍了Keil C51编译器中NOCOND伪指令的用法,该指令用于排除未参与编译的代码行在列表文件中的显示。文章通过示例展示了如何使用此指令,并解释了其默认设置及与COND指令的区别。
889

被折叠的 条评论
为什么被折叠?



