<?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>address space overflow AGAIN</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/15426/address-space-overflow-again</link><description> When I compile my program with my MasterLoop() called from main, it compiles fine with the following: 
 
Program Size: data=140.1 xdata=6081 code=20964 
 
When I comment out the entirey of my MasterLoop() and just return 0, I get tons of overlay warnings</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: address space overflow AGAIN</title><link>https://community.arm.com/thread/39527?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2002 03:31:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:edbe0c29-1d71-4081-bc83-3bc530acc1fa</guid><dc:creator>John Donaldson</dc:creator><description>&lt;p&gt;This is probably happening because MasterLoop() calls other functions which are no longer called from anywhere in the program once the body of MasterLoop() has been commented out. The linker cannot then include these functions in the call tree it builds to work out which local variables can be overlaid, so when the functions are linked their local variables are all given their own address space.&lt;br /&gt;
&lt;br /&gt;
Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>