<?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>optimization problem of c51</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/19672/optimization-problem-of-c51</link><description> hi all 
I am working with keil ide. And cygnal 8051f120,my compiler version is 7.20, I am facing some problems with the optimization .my code size is above 36 kb, when I use optimization level default (8) the float values and long values are giving me</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: optimization problem of c51</title><link>https://community.arm.com/thread/97929?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2006 07:28:40 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:49140f7b-b3d8-4d0c-90b0-e91990fafd73</guid><dc:creator>Christoph Franck</dc:creator><description>&lt;p&gt;Some bits of information would be helpful, like:&lt;br /&gt;
&lt;br /&gt;
- the actual source code in which the error occurs.&lt;br /&gt;
- what the false result is (is it always the same or does it change)&lt;br /&gt;
- are there any ISRs running at the same time as the operation that return the false results.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: optimization problem of c51</title><link>https://community.arm.com/thread/73920?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2006 06:54:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f1a425d7-fd33-46e1-9869-13ff25f3e3e3</guid><dc:creator>harikrishnan cs</dc:creator><description>&lt;p&gt;dear neil&lt;br /&gt;
i am sure that there no error or bug in that part of code because i am not doing any thing other than simple addition to variable that are showing these undesired values&lt;br /&gt;
&lt;br /&gt;
                  if i put optimization level 3, these errors are not coming&lt;br /&gt;
&lt;br /&gt;
                                                                                                   Thanks for your replay&lt;br /&gt;
                                       						hari&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: optimization problem of c51</title><link>https://community.arm.com/thread/45744?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2006 06:23:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f03365da-55ad-4574-a406-87b0b94a4c05</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;Are you sure that the problem is actually &lt;i&gt;caused by&lt;/i&gt; the optimisation?&lt;br /&gt;
&lt;br /&gt;
Are you sure that it&amp;#39;s not just that the optimisation happens to bring out some other latent bug in your code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>