Keil Logo Arm Logo

huge

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

  • For variables, huge memory is limited to 16M and object size is only limited by the available memory. Variables declared huge are located in the HDATA group.
  • For constants (ROM variables), huge memory is limited to 16M and object size is limited by the available memory. Constant variables declared huge are located in the HCONST group.

Declare huge objects as follows:

unsigned char huge huge_variable[0x50000];
unsigned char const huge huge_const_variable[0x20000] =
  { 1, 2, 3, ... };

unsigned long l;

unsigned int function (void) {
  return (huge_variable[l]);
}

Keil logo

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.