<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Regarding p89c51rd2</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/27279/regarding-p89c51rd2</link><description> 
Dear Sir; 

 
Currently am doing Project in p89c51rd2 and using the Header file
REG51F.h. 
After my code compile it will show the error &amp;quot;Data Segment too
large&amp;quot;. 

 
How can i reduce this or avoid this error? 

 
Please help me 

 
p89c51rd2 is a 256</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Regarding p89c51rd2</title><link>https://community.arm.com/thread/66125?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2010 23:51:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7b08139f-ea1e-4aff-89cb-e3b2faa46e9e</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Do you understand the different memory spaces of the 8051
architecture?&lt;br /&gt;
See: &lt;a href="http://www.keil.com/support/man/docs/c51/c51_le_memareas.htm"&gt;http://www.keil.com/support/man/docs/c51/c51_le_memareas.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
If you don&amp;#39;t, then you have some basic study to do first:&lt;br /&gt;
&lt;a href="http://www.keil.com/books/8051books.asp"&gt;http://www.keil.com/books/8051books.asp&lt;/a&gt;&lt;br /&gt;

&lt;a href="http://www.8052.com/faqs/120112"&gt;www.8052.com/.../120112&lt;/a&gt;&lt;br /&gt;

&lt;a href="http://www.8052.com/tutorial"&gt;http://www.8052.com/tutorial&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
If you do, then it should be obvious that, when one memory space
is full, you will have to consider using another.&lt;br /&gt;
Or just reduce the amount of data required by your program!&lt;/p&gt;

&lt;p&gt;
The compiler output shows you how much of each of the various
memory spaces is being used.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;p89c51rd2 is a 256 Ram memory then how it makes error, i cant
understand&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Note that&amp;#39;s just 256 &lt;i&gt;&lt;b&gt;bytes&lt;/b&gt;&lt;/i&gt; of RAM - and it has to
include space for the stack.&lt;/p&gt;

&lt;p&gt;
It is really quite easy to use up 256 &lt;i&gt;&lt;b&gt;bytes&lt;/b&gt;&lt;/i&gt; of
RAM!&lt;/p&gt;

&lt;p&gt;
The p89c51rd2 also has 768 Bytes XRAM (ie, XDATA)...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>