Keil Logo

Classic 8051 Devices

Classic 8051 devices provide on-chip RAM (bit, data, and idata), ROM (code and const), and external RAM (xdata and pdata) that your application may use.

The 8051 applications you create conform to a memory map that is dictated by the device selected and your hardware configuration. You must use the following linker directives to provide details of the memory map to the linker so it can locate program segments accordingly.

  • The CLASSES linker directive sets the address range for memory classes.
  • The SEGMENTS linker directive sets the absolute memory location for a segment, the order of segments in memory, or Special ROM (SROM) segments which execute from one address but are stored at a different address.

In addition, Code Banking applications require the BANKAREA directive to specify the memory area that contains the code banks.

Note

  • When you use the µVision IDE, the on-chip memory areas of many devices are set automatically based on the device you select. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.