Discussion Forum

error " Data segment too large"

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
ry uran
Posted
16-Sep-2002 19:09 GMT
Toolset
C51
New! error " Data segment too large"
i have complete the program
however, when i complier it with keil uVersion 2 c51
it always shown
'data segment too large'
what's wrong?
how can i solve it?
Read-Only
Author
Walt Conley
Posted
16-Sep-2002 21:21 GMT
Toolset
C51
New! RE: error " Data segment too large"
Refer to the answer from the last time this question was asked.

http://www.keil.com/forum/docs/thread1114.asp

-Walt
Read-Only
Author
Andrew Neil
Posted
16-Sep-2002 21:25 GMT
Toolset
C51
New! RE: error " Data segment too large"
The amount of DATA memory space is only very limited - you have obviously used too much!

Therefore your need to either
1. get rid of some variables, or
2. move some variables out of the DATA memory space and into another; eg, PDATA or XDATA.

Read Chapter 3, Language Extensions in the manual - it starts with a discussion of the different memory spaces.
Read-Only
Author
Rajesh Thangella
Posted
21-Sep-2002 20:02 GMT
Toolset
C51
New! RE: error " Data segment too large"
First try putting some of the vars in idata instead and try.If that does not work,just move some of them to pdata/xdata.
RAJESH

Next Thread | Thread List | Previous Thread Start a Thread | Settings