C166: ACCESSING THE FULL ADDRESS RANGE
Information in this article applies to:
Is it possible to access the full address range (16Mb) in C?
Yes. The huge and xhuge memory types allow access to the full 16Mb address range of the C167. The huge memory type only uses 16-bit address calculation, so the maximum size of an object may be 64kb, however, it is the optimum memory type for the microcontroller. The xhuge memory type does not have a limit on the maximum size of an object.
For example, you may declare variables and pointers using these memory types. Here are some examples:
unsigned char xhuge foo; int huge bar; unsigned char huge thing; char xhuge *xptr; long huge *baz;
If you choose the HLARGE memory model, the variables default to being huge.
Last Reviewed: Friday, July 15, 2005
of your data.