ARM Technical Support Knowledge Articles

FATAL ERROR (MORE THAN 256 SEGMENTS)

Applies to: C51 C Compiler

Answer


Information in this article applies to:


SYMPTOMS

When I compile my program, I receive the following fatal error:

C51 FATAL-ERROR -
  ACTION:  ANALYZING DECLARATIONS
  ERROR:   MORE THAN 256 SEGMENTS/PUBLICS
C51 TERMINATED.

What does this mean?

CAUSE

This error is output when there are more than 256 global variables or functions in a single source module. The OMF51 object module format is limited to 256 global objects. The limitation is due to size (8-bits) of the symbol name index.

RESOLUTION

Reduce the number of global variables and functions or move common or related variables into a data structure.

Article last edited on: 2000-07-10 00:00:00

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