<?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>Turn off all optimizations?</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/36324/turn-off-all-optimizations</link><description> 
I was following a tutorial that was showing how the ARM processor
worked 
and it used a main like this: 

 
int main() 
{ int counter = 0; 
++counter; 
++counter; 
++counter; 
++counter; 
return 0; 
} 

 
The example was to show some register usage</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Turn off all optimizations?</title><link>https://community.arm.com/thread/70671?ContentTypeID=1</link><pubDate>Fri, 30 Mar 2018 11:41:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:11863eef-cbc6-42b6-9eff-e83057fbdf6c</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
So who is &lt;i&gt;&amp;quot;they&amp;quot;&lt;/i&gt; ?&lt;/p&gt;

&lt;p&gt;
Why are you not asking &lt;i&gt;&lt;b&gt;them&lt;/b&gt;&lt;/i&gt; ?&lt;/p&gt;

&lt;p&gt;
Surely, if you want to be seeing the detail of how CPU
instructions work, then a HLL is the wrong tool for the job - for
exactly the reasons you&amp;#39;re seeing!&lt;/p&gt;

&lt;p&gt;
If you want to work at the assembler level, then &lt;b&gt;use
&lt;i&gt;Assembler&lt;/i&gt;!&lt;/b&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Turn off all optimizations?</title><link>https://community.arm.com/thread/86312?ContentTypeID=1</link><pubDate>Fri, 30 Mar 2018 11:04:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ed9044db-29a0-4763-936e-af2d2edf8a10</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Optimization is a selection box in the C/C++ tab of the project
options&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Turn off all optimizations?</title><link>https://community.arm.com/thread/70672?ContentTypeID=1</link><pubDate>Fri, 30 Mar 2018 10:36:11 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e8e130ac-d62e-47e7-8902-305adfc6d551</guid><dc:creator>Robert McNamara</dc:creator><description>&lt;p&gt;&lt;p&gt;
Turn Off All Optimizations and it wont optimize away your
stuff...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>