BL51 User's Guide

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.
See Also

XDATA

Example
BL51 MYPROG.OBJ RAMSIZE(256)