<?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>use of static , is it helpful</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/40193/use-of-static-is-it-helpful</link><description> 
Using keyword static at modular level , i.e functions/variables
which are used in same module only are declared as static, is it
helpful in generating better code. 

 
I read in 8051 declaring static at modular level is good ,as it
helps in generating</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: use of static , is it helpful</title><link>https://community.arm.com/thread/117303?ContentTypeID=1</link><pubDate>Mon, 13 May 2013 05:26:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:31f7430e-f9d9-4783-a075-6341b8d6b3f2</guid><dc:creator>pattercake pattercake</dc:creator><description>&lt;p&gt;&lt;p&gt;
Depending upon the optimization level, you may see some static
functions being automatically inlined and various other clever
similar code shuffling operations being done by the compiler.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use of static , is it helpful</title><link>https://community.arm.com/thread/107108?ContentTypeID=1</link><pubDate>Mon, 13 May 2013 05:21:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e55101e5-c307-4f00-adfe-8c75126bfbda</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Tried what, exactly?&lt;/p&gt;

&lt;p&gt;
And what, exactly, did you see?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use of static , is it helpful</title><link>https://community.arm.com/thread/81229?ContentTypeID=1</link><pubDate>Mon, 13 May 2013 04:43:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:08aaadbd-a7f8-48a8-859f-19c892a1b379</guid><dc:creator>Aamir Ali</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes it is better to use static for better modularity.&lt;/p&gt;

&lt;p&gt;
But I want to know will it bring some optimization like in 8051
where LCALL &amp;amp; ACALL inst are used.&lt;br /&gt;
I tried this &amp;amp; saw some shortage in coed memory &amp;amp; I am not
sure how it happens&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: use of static , is it helpful</title><link>https://community.arm.com/thread/68285?ContentTypeID=1</link><pubDate>Mon, 13 May 2013 03:53:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:40f51bd2-e256-469c-b6cd-ac22d611f650</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Prio 1 is to use static to try to keep down the interface a module
exports to the rest of the program.&lt;/p&gt;

&lt;p&gt;
Any code optimization bonus you get from it is just an additional
bonus.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>