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

声明:

1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。

2、请勿用于商业用途。

3、英文来自:http://www.keil.com/support/man/docs/c51/。

4、欢迎大家共同与我交流探讨(290207203@qq.com)。

SRC Compiler Directive

Abbreviation

None.

Arguments

SRC 〚(filename)〛

Default

None.

µVision
  1. Right click on the file in the Project Window — Files tab
  2. Choose Options for... to open Options — Properties page
  3. Enable Generate Assembler SRC file
  4. Enable Assemble SRC file.
Description

The SRC directive creates an assembler source (.SRC) file instead of an object (.OBJ) file. The source file may be assembled with the assembler. Refer to Source (SRC) File for more information regarding assembler source files.

The source file is saved as filename if specified. Otherwise, the source file is saved as the path and base name of the C source file with a .SRC extension.

 Note

  • The compiler cannot simultaneously produce a source file and an object file.
See Also

ASMENDASM

Example
C51 SAMPLE.C SRC

C51 SAMPLE.C SRC(SML.ASM)

#pragma src

SRC 编译器伪指令

缩写

无。

参数

SRC 〚(filename)〛

缺省

无。

µVision
  1. 右击 Project 窗口 — Files 标签下的文件。
  2. 选择 Options for... 打开 Options — Properties 页。
  3. 使能 Generate Assembler SRC file
  4. 使能 Assemble SRC file.
描述

SRC 伪指令生成汇编源文件 (.SRC) ,代替目标文件 (.OBJ)。源文件绝缘提高汇编器汇编。关于汇编源文件的更多信息参考 Source (SRC) File 。

如果指定参数filename ,文件按指定的参数保存。否则,文件按路径,C源文件的基名, .SRC后缀的方式保存。

 注意

  • 编译器不能同时生成汇编文件和目标文件。
参考

ASMENDASM

示例
C51 SAMPLE.C SRC

C51 SAMPLE.C SRC(SML.ASM)

#pragma src



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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值