ARM Technical Support Knowledge Articles

MULTIPLE LARGE OBJECTS IN HDATA

Applies to: C51 C Compiler

Answer


Information in this article applies to:


SYMPTOM

When I declare several large arrays with the "far" type, I get an "error C249: 'FDATA': SEGMENT TOO LARGE", even though no individual object is larger than 64k.

CAUSE

The size restriction on far data doesn't refer to individual objects. No "far" data segment may exceed 64k in size. In this context, a segment means all data in a given memory space, declared in a single source file.

RESOLUTION

You need to make sure the size of any segemnt doesn't exceed 64k. Sometimes this means you must declare each object in its own file.

MORE INFORMATION

Article last edited on: 2005-07-15 10:02:21

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential