<?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>missing compile what is going on</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/15510/missing-compile-what-is-going-on</link><description> I am thoroughly puzzled about this, any suggestions 
 
source starting line 152 
 
 while (!UnblankSlot);
 SB_CR = FALSE; // stop the CCAP counter
 BSP1_PSTB_N = 0; // strobe the map in
 BSP1_PSTB_N = 1;

// unblank color 1 and upload color 2
 SetPCA</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: missing compile what is going on</title><link>https://community.arm.com/thread/141202?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2002 13:17:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b2e38ef7-a868-4e9b-bab8-873913e2ce21</guid><dc:creator>Jon Ward</dc:creator><description>&lt;p&gt;Compiler Only.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Jon&lt;/b&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: missing compile what is going on</title><link>https://community.arm.com/thread/137619?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2002 12:12:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:896c7a58-bd2c-49a8-a2ae-606002402dbe</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;i&gt;OPTIMIZE(0)&lt;/i&gt;&lt;br /&gt;
linker and/or compiler ?&lt;br /&gt;
&lt;br /&gt;
Erik&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: missing compile what is going on</title><link>https://community.arm.com/thread/137620?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2002 12:08:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:51727ab7-19f4-41e2-afb7-c153990c4f4e</guid><dc:creator>Jon Ward</dc:creator><description>&lt;p&gt;&lt;pre&gt;OPTIMIZE(0)&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Jon&lt;/b&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: missing compile what is going on</title><link>https://community.arm.com/thread/134121?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2002 11:55:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:beb1f480-5087-49c3-9023-5610c6bbbaaa</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;In a nutshell, you can create a project with 2 targets&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
The trouble is, they are totally &lt;i&gt;independent&lt;/i&gt; Targets - there is no way to  maintain options which need to be common to both.  :-(&lt;br /&gt;
&lt;br /&gt;
There needs to be (at least?) one more level in the Project Hierarchy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: missing compile what is going on</title><link>https://community.arm.com/thread/134126?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2002 10:14:07 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bb5fdd1e-4f45-4b20-9636-853f21253b6a</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;what is the compiler and linker DOS commandline options for no optimization?&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: missing compile what is going on</title><link>https://community.arm.com/thread/121852?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2002 09:53:22 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:24bf97ba-e347-4bda-aaf6-7f18b3aa2530</guid><dc:creator>Jon Ward</dc:creator><description>&lt;p&gt;There is a knowledgebase article that addresses this problem:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.keil.com/support/docs/2467.htm"&gt;http://www.keil.com/support/docs/2467.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
In a nutshell, you can create a project with 2 targets:  1 for debugging and 1 for production.  (I prefer to debug using the production code.)&lt;br /&gt;
&lt;br /&gt;
In the Debugging target, set the optimizer level to 3.  That causes the compiler and linker to perform no optimizations that move code around.&lt;br /&gt;
&lt;br /&gt;
In the Production target, set the optimizer level to whatever you want.&lt;br /&gt;
&lt;br /&gt;
Note that code may be moved around by the higher level optimizations.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Jon&lt;/b&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: missing compile what is going on</title><link>https://community.arm.com/thread/110160?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2002 07:56:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3228e5fd-96a7-47fb-bf67-92c0704fed16</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;The problem here is that the source in the ICE of course does not show this&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Yes - this is always a problem with optimising compilers!&lt;br /&gt;
That&amp;#39;s why things like MSVC and Borland C++ Builder let you specify a &amp;#39;DEBUG&amp;#39; or &amp;#39;RELEASE&amp;#39; build.&lt;br /&gt;
From time to time, people ask here how to do the same in uVision - but its Project management isn&amp;#39;t really quite up to it.&lt;br /&gt;
You might find it easier with your batch files?&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;quot;is there a way to make the DEBUG VERSION of the code exactly match what the C source states?&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Avoid the &lt;b&gt;OBJECTADVANCED&lt;/b&gt; option?&lt;br /&gt;
&lt;br /&gt;
Use &lt;b&gt;OPTIMISE(0)&lt;/b&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: missing compile what is going on</title><link>https://community.arm.com/thread/95250?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2002 07:16:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:506a9602-4cb1-4e35-b515-81857957ec87</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;How sneaky/elegant.  The resulting code has a &amp;quot;double entry subroutine&amp;quot; one entry has the 3 &amp;quot;missing&amp;quot; instructions in front the other is SetPCA as is.  The problem here is that the source in the ICE of course does not show this and a first look at the assembly code show them missing.  Running from DOS batchfiles is there a way to make the DEBUG VERSION of the code exactly match what the C source states?&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: missing compile what is going on</title><link>https://community.arm.com/thread/54842?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2002 17:17:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5ee01941-7a64-4d8d-a612-be517208e0ba</guid><dc:creator>Jon Ward</dc:creator><description>&lt;p&gt;Can you show the code that is at ?C0038?&lt;br /&gt;
&lt;br /&gt;
I have a feeling that this code initializes the vars and calls SetPCA.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Jon&lt;/b&gt;&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: missing compile what is going on</title><link>https://community.arm.com/thread/54843?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2002 17:07:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0f39d508-cd20-4dec-8d14-c956afc348f9</guid><dc:creator>Andrew Neil</dc:creator><description>&lt;p&gt;Sounds like the &amp;quot;common block&amp;quot; optimisations again?&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.8052.com/forum/read.phtml?id=31572" target="_blank"&gt;http://www.8052.com/forum/read.phtml?id=31572&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: missing compile what is going on</title><link>https://community.arm.com/thread/39457?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2002 16:14:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cc5b14cd-6224-428a-90e2-1b90ff8934a5</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;it turns out the the compiler has &amp;quot;optimized&amp;quot; it into the SetPCA function.&lt;br /&gt;
&lt;br /&gt;
However, elsewhere the SetPCA is &lt;b&gt;NOT&lt;/b&gt; preceeded by these instructions&lt;br /&gt;
&lt;br /&gt;
other place in source:&lt;br /&gt;
&lt;pre&gt;
    }

// unblank color 0 and upload color 1
  SetPCA();
&lt;/pre&gt;
&lt;br /&gt;
Erik&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>