<?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>code size difference between version 4.22a and 4.23</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/28465/code-size-difference-between-version-4-22a-and-4-23</link><description> 
Hi, 

 
I am using a Samsung chip with cortex-M3 core,when i Build the
code using 4.22a version of keil the code size is aroung 498KB at
optimization level 1.The same code when i build using 4.23 version
with same optimization level is coming around</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: code size difference between version 4.22a and 4.23</title><link>https://community.arm.com/thread/80139?ContentTypeID=1</link><pubDate>Mon, 02 Apr 2012 01:09:50 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9571da5e-734d-4604-b917-bbc99d8840e9</guid><dc:creator>G G</dc:creator><description>&lt;p&gt;&lt;p&gt;
Also, if my understanding is correct, a build without a preceeding
&amp;quot;clean&amp;quot; will use a linker feedback file which will result in further
optimisation. Therefore a rebuild after a &amp;quot;clean&amp;quot; is likely to
produce larger code than a subsequent rebuild without a &amp;quot;clean&amp;quot;.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code size difference between version 4.22a and 4.23</title><link>https://community.arm.com/thread/60570?ContentTypeID=1</link><pubDate>Sun, 01 Apr 2012 22:34:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:aeedcef7-d589-4fa6-aba2-1ea3dfd0eb3e</guid><dc:creator>Franc  Urbanc</dc:creator><description>&lt;p&gt;&lt;p&gt;
No, the compiler version is not the same:&lt;br /&gt;
MDK4.22a - armcc ver. 4.1.0.&lt;b&gt;791&lt;/b&gt;&lt;br /&gt;
MDK4.23 - armcc ver. 4.1.0.&lt;b&gt;894&lt;/b&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code size difference between version 4.22a and 4.23</title><link>https://community.arm.com/thread/105874?ContentTypeID=1</link><pubDate>Sat, 31 Mar 2012 09:04:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:24d54dc6-f34b-4624-ae27-6a23b00114fa</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;My problem was because the compiler version is same only Keil
version was differend,so as per my understanding same compiler
version should give same code at same optimization level.&lt;/i&gt;&lt;br /&gt;
the linker does some optimization as well e.g. combining function
tails from different modules.&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code size difference between version 4.22a and 4.23</title><link>https://community.arm.com/thread/105876?ContentTypeID=1</link><pubDate>Sat, 31 Mar 2012 07:50:28 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a3f5cfd2-ec95-4b7f-b53e-f368fed9565f</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
What do you mean by that??&lt;/p&gt;

&lt;p&gt;
&amp;quot;Keil&amp;quot; is just the name of the company - it doesn&amp;#39;t have a
version!&lt;/p&gt;

&lt;p&gt;
What specific product and/or component version(s) are you talking
about?&lt;/p&gt;

&lt;p&gt;
Remember that your total executable size includes libraries - so
maybe the libraries have changed...?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code size difference between version 4.22a and 4.23</title><link>https://community.arm.com/thread/105885?ContentTypeID=1</link><pubDate>Sat, 31 Mar 2012 06:32:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9c0aa07a-b47c-4594-b30e-e0dd2867b690</guid><dc:creator>Ramanarayanan TATA CONSULTANCY SERVICES</dc:creator><description>&lt;p&gt;&lt;p&gt;
The compiler version are same,may be the default setting would
have been changed,i ll check on that,thank you very much for the
reply&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code size difference between version 4.22a and 4.23</title><link>https://community.arm.com/thread/80140?ContentTypeID=1</link><pubDate>Sat, 31 Mar 2012 06:30:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2802ce7f-a0c0-4852-a4fc-2af6e24a8b73</guid><dc:creator>Ramanarayanan TATA CONSULTANCY SERVICES</dc:creator><description>&lt;p&gt;&lt;p&gt;
My problem was because the compiler version is same only Keil
version was differend,so as per my understanding same compiler
version should give same code at same optimization level.May be as
Mr.Per Westermark said the default flag would have been
changed,Anyways thanks for the reply.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code size difference between version 4.22a and 4.23</title><link>https://community.arm.com/thread/91481?ContentTypeID=1</link><pubDate>Sat, 31 Mar 2012 04:30:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0d44480d-3d10-4087-8dfa-db0e41ac8421</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Different uvision versions are likely to have different compiler
versions (or possibly have changes to default flags).&lt;/p&gt;

&lt;p&gt;
Different compiler versions, or compiler when used with different
set of flags, are likely to produce different code.&lt;/p&gt;

&lt;p&gt;
That is a reason why (if it&amp;#39;s important) people often have to have
multiple versions installed at the same time - if a program have been
ceritified using one compiler/set of flags, it&amp;#39;ll have to continue
with that compiler/set of flags just to make sure a change in code
generation doesn&amp;#39;t introduce a change in program behaviour.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code size difference between version 4.22a and 4.23</title><link>https://community.arm.com/thread/67365?ContentTypeID=1</link><pubDate>Sat, 31 Mar 2012 03:26:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c2d0ed03-2ece-4a2e-8be4-cd8e28494d95</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
using 4.22a, size ~498KB;&lt;br /&gt;
using 4.23, size ~473Kb.&lt;/p&gt;

&lt;p&gt;
So the newer compiler gives slightly smaller code; ie, the
optimisation (or whatever) is slightly improved - is that not exactly
what you&amp;#39;d hope for in a newer version??!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>