<?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>General Programing Question</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/43056/general-programing-question</link><description> 
I&amp;#39;m experiencing a problem that some of you may have seen. I have
an application that executes without any problems. If I comment out a
 sprintf() or a printf() , however, the code executes to
a point and hangs. The point where it stops is not always</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: General Programing Question</title><link>https://community.arm.com/thread/51847?ContentTypeID=1</link><pubDate>Fri, 13 Jun 2008 14:01:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0fe47d03-2ce2-40ef-ab22-fea12ea473c9</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
It is impossible to state a single possible cause and, therefore,
a single possible solution.&lt;/p&gt;

&lt;p&gt;
Clearly your system has a bug (or bugs), and the symptoms happen
to be masked when the (s)printfs are in.&lt;br /&gt;
It is impossible to be more specific than that without detailed
analysis of your system.&lt;/p&gt;

&lt;p&gt;
There could be many possible causes; eg:&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;Timing:&lt;/b&gt; the time consumed by the (s)printfs slows things
down sufficiently that the bugs do not manifest;&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;Memory fault:&lt;/b&gt; the memory consumed by the (s)printfs happens
to keep something critical out of some dodgy memory area so that the
bugs do not manifest;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;etc, etc,...&lt;/i&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>