声明:
1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。
2、请勿用于商业用途。
3、英文来自:http://www.keil.com/support/man/docs/c51/。
4、欢迎大家共同与我交流探讨(290207203@qq.com)。
PREPRINT Compiler Directive
| Abbreviation | PP |
| Arguments | An optional filename enclosed in parentheses. |
| Default | No preprocessor listing is generated. |
| µVision | Options — C51 — C Preprocessor Listing. |
| Description | The PREPRINT directive instructs the compiler to produce a preprocessor listing. Macro calls are expanded and comments are deleted. If PREPRINT is used without an argument, the source filename with the extension .I is used. By default, the compiler does not generate a preprocessor output file. The PREPRINT directive causes the compiler to produce a preprocessor listing file. Macro calls are expanded and comments are deleted and an object file is created. If no argument is specified for PREPRINT, the preprocessor listing file is namedbasename.I where basename is the name of the source file. If an argument is specified for PREPRINT, the preprocessor listing file is created with that name. By default, the compiler does not create a preprocessor listing file.
|
| See Also | |
| Example | C51 SAMPLE.C PREPRINT C51 SAMPLE.C PP (PREPRO.LST) |
PREPRINT 编译器伪指令
| 缩写 | PP |
| 参数 | 可选的文件名,用括号括起来。 |
| 缺省 | 没有预处理器列表文件生成。 |
| µVision | Options — C51 — C Preprocessor Listing. |
| 描述 | PREPRINT 伪指令告诉编译器生成预处理器列表文件。宏调用扩展,注释删除,并生成列表文件。 如果PREPRINT没有指定参数,使用源文件名 加.I后缀 。 缺省情况下,编译器不生成预处理器列表文件。 如果PREPRINT指定参数, 参数是预处理器列表文件的文件名。
|
| 参考 | |
| 示例 | C51 SAMPLE.C PREPRINT C51 SAMPLE.C PP (PREPRO.LST) |
本文详细介绍了PREPRINT编译器伪指令在C51环境下的作用,包括其参数、缺省设置、描述、注意事项及示例应用。旨在帮助开发者了解如何利用此伪指令生成预处理器列表文件,增强代码理解和维护。
Note
Related Knowledgebase Articles
394

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



