<?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>How to avoid occupy code memory by &amp;quot;Uncalled Segment&amp;quot;?</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/20172/how-to-avoid-occupy-code-memory-by-uncalled-segment</link><description> There are many functions in my source code. If some functions don&amp;#39;t be used in current target. There are some warning message about &amp;quot;Uncalled Segment&amp;quot; after compling. And these uncalled segments also occupy code memory. Does not have any method to avoid</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: How to avoid occupy code memory by "Uncalled Segment"?</title><link>https://community.arm.com/thread/112178?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2006 14:20:04 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:624011bf-51b4-4725-b289-a2748e12a4de</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;i&gt;it still has &amp;quot;uncalled segment&amp;quot; and occupy code memory. Why?&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
can&amp;#39;t you read?&lt;br /&gt;
&lt;br /&gt;
I posted &amp;quot;put them in &lt;b&gt;individual&lt;/b&gt; source modules&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if you have 5 functions in an obj file that is in a library and one of those functions is called, the whole obj (all 5 functions )get included.&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to avoid occupy code memory by "Uncalled Segment"?</title><link>https://community.arm.com/thread/98215?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2006 13:35:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a1334747-424f-457d-b0e0-fa69dbe60add</guid><dc:creator>Walace Chuang</dc:creator><description>&lt;p&gt;Thanks for your assistance. About your suggestion. I had tried to integrate all object files(*.obj) to generate a library.&lt;br /&gt;
And then I complied my project with this library, it still has &amp;quot;uncalled segment&amp;quot; and occupy code memory. Why? Does it have any required process I have to do before making the library which has the effect like you said?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to avoid occupy code memory by "Uncalled Segment"?</title><link>https://community.arm.com/thread/46278?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2006 15:43:50 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:22357a6a-32b8-4159-9ea6-bdd15010f9c3</guid><dc:creator>Lex Timmerman</dc:creator><description>&lt;p&gt;If you use the LX51 linker, just add REMOVEUNUSED to the linker controls&lt;br /&gt;
&lt;br /&gt;
Lex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to avoid occupy code memory by "Uncalled Segment"?</title><link>https://community.arm.com/thread/87778?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2006 15:32:58 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ca99139e-2104-49fd-b90e-e835874081dc</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;I have many builds, and they compile seamlessly without &amp;#39;uncalled&amp;#39; modules, simply because all &amp;#39;optional&amp;#39; modules are in a library.&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to avoid occupy code memory by "Uncalled Segment"?</title><link>https://community.arm.com/thread/46270?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2006 14:54:24 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ce68f59b-6e28-4bd1-abdf-be8bf25a4b1a</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;Doesn&amp;#39;t the latest version of the Linker have options to do this?&lt;br /&gt;
&lt;br /&gt;
But, surely, if you&amp;#39;re worried about code space then it&amp;#39;s up to &lt;i&gt;&lt;b&gt;you&lt;/b&gt;&lt;/i&gt; to ensure that you don&amp;#39;t squander it!&lt;br /&gt;
&lt;br /&gt;
If your source is full of bloat, you can&amp;#39;t really blame the tools when your code space fills up, can you?!&lt;br /&gt;
&lt;br /&gt;
You can use uVision&amp;#39;s project management options to exclude unused files and/or groups from the build without #if&lt;br /&gt;
&lt;br /&gt;
The other issue with uncalled modules is that they mess up the data overlaying - so you are also squandering data space!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to avoid occupy code memory by "Uncalled Segment"?</title><link>https://community.arm.com/thread/46268?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2006 14:29:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5f909937-b26f-470d-b201-669d6dd10120</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;sure put them in individual source modules, compile them and save them in a libray.&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>