Keil Logo

huge

The huge memory type may be used for variables, constants, and functions. This memory is accessed using 32-bit addresses and may be on-chip or external.

  • For variables, huge memory is limited to 16M, objects are limited to 64K, and objects may not cross a 64K boundary. Variables declared huge are located in the HDATA group.
  • For constants (ROM variables), huge memory is limited to 16M, objects are limited to 64K, and objects may not cross a 64K boundary. Constant variables declared huge are located in the HCONST group.
  • For program code (functions), huge memory is limited to 16M. Program code declared huge is stored in the FCODE group. Functions are invoked with the CALLS instruction.

Declare huge objects as follows:

unsigned char huge huge_variable;

unsigned char const huge huge_const_variable;

unsigned int huge huge_func (void)
{
return (0);
}
  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.