CX51 用户手册----PREPRINT伪指令

声明:

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.

 Note

  • The PREPRINT directive may be specified only on the command line. It may not be specified in the C source file by means of the #pragma directive.
See Also

NOPRINTPRINT

Example
C51 SAMPLE.C PREPRINT

C51 SAMPLE.C PP (PREPRO.LST)

 Related Knowledgebase Articles



PREPRINT 编译器伪指令

缩写

PP

参数

可选的文件名,用括号括起来。

缺省

没有预处理器列表文件生成。

µVision

Options — C51 — C Preprocessor Listing.

描述

PREPRINT 伪指令告诉编译器生成预处理器列表文件。宏调用扩展,注释删除,并生成列表文件。  如果PREPRINT没有指定参数,使用源文件名 加.I后缀 。 缺省情况下,编译器不生成预处理器列表文件。

如果PREPRINT指定参数, 参数是预处理器列表文件的文件名。

 注意

  • PREPRINT 伪指令只能在命令行中指定。不用用#pragma 伪指令在 C 源文件中指定。
参考

NOPRINTPRINT

示例
C51 SAMPLE.C PREPRINT

C51 SAMPLE.C PP (PREPRO.LST)




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值