keil BL51 Linker directives

PRINT Linker Directive Abbreviation PR Arguments PRINT ( filename) Default The name of the generated object file with a .M51 extension. µVision None. Description

The PRINT directive specifies the name of the listing file. If no PRINT directive is specified the listing file is given the name of the generated object file with a .M51 extension.

RAMSIZE Linker Directive

Abbreviation RS Arguments RAMSIZE (bytes) Default RAMSIZE (128) µVision This information is automatically set using information from the Device Database. Description

The RAMSIZE directive specifies the number of bytes of DATA and IDATA in your target 8051 device. The number of bytes specified must be between 64 and 256.

Note

  • The information needed to specify correct values for the RAMSIZE directive may be found in the device data sheet. Many data sheets refer to the DATA and IDATA memory as on-chip RAM. However, some devices have additional on-chip RAM that is mapped into XDATA memory space. Since the size of DATA and IDATA is limited to 256 bytes, if the on-chip RAM of your 8051 derivative is more than 256 bytes some of that RAM is most likely accessed as XDATA. Review your device data sheet carefully.

DEFINE Compiler Directive

Abbreviation DF Arguments One or more names (in accordance with the naming conventions of the C language) separated by commas. An optional value may be assigned to each name. Default None. µVision Options — C51 — Define. Description

The DEFINE directive defines preprocessor symbols on the compiler command line. This is equivalent to using the #define directive in your program source code. You may use the #if, #ifdef, and #ifndef preprocessor directives to query names defined with the DEFINE directive.

Defined names are copied exactly as they are entered and are case-sensitive. Each name may be assigned a value.

Note

  • The DEFINE directive may be specified only on the command line. Use the C preprocessor #define directive to define symbols inside a C source file.
  • The DEFINE directive may not be used to define preprocessor macros.

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值