<?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>SRC options force &amp;#39;Always Build&amp;#39;</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/14111/src-options-force-always-build</link><description> Three of the &amp;#39;C&amp;#39; source files in my Project have inline assembler; therefore I have checked the &amp;#39;Generate SRC&amp;#39; and &amp;#39;Assemble SRC&amp;#39; options for these files in uVision. 
 
This causes those 3 files to translated every time I build the Project - even when</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: SRC options force 'Always Build'</title><link>https://community.arm.com/thread/53621?ContentTypeID=1</link><pubDate>Mon, 23 Apr 2001 12:39:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7887540e-698f-4c5b-aa09-1e4e9a78543f</guid><dc:creator>Jon Ward</dc:creator><description>&lt;p&gt;&lt;i&gt;They don&amp;#39;t say why it&amp;#39;s so hard. &lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
The Keil C compilers create a list of dependencies as they compile a C file.  This information is stored in the .OBJ file.&lt;br /&gt;
&lt;br /&gt;
When you use the uVision2 IDE to build a project, as it compiles each C file, the IDE looks in the .OBJ file to determine if any of the #include files (or other dependencies) have changed.&lt;br /&gt;
&lt;br /&gt;
If they have (or if the .OBJ file DNE) uVision2 runs the C compiler.&lt;br /&gt;
&lt;br /&gt;
Now.  Here&amp;#39;s the problem.&lt;br /&gt;
&lt;br /&gt;
When you generate a .SRC file from a .C file, all of that dependency information is not saved anywhere (because no .OBJ file is generated).  So, the code that finds our what dependencies there are has to be migrated from the C compiler to the uVision2 IDE.  And, the IDE has to automatically scan the .C file for .H file and scan the .H files for other .H files and so on.&lt;br /&gt;
&lt;br /&gt;
Or, we have to provide a way for the end-user to specify fixed dependency information for a source file.&lt;br /&gt;
&lt;br /&gt;
Since there are usually only a few .C files that you compile into .SRC files, it shouldn&amp;#39;t slow the build process down much.  However, there are projects that use a large number of .C files compiled into .SRC files.  And, that is where this caveat presents delays.&lt;br /&gt;
&lt;br /&gt;
So, until we figure out a slever way to solve this problem, your best work-around is to reduce the number of .C -&amp;gt; .SRC files in your project.&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: SRC options force 'Always Build'</title><link>https://community.arm.com/thread/37420?ContentTypeID=1</link><pubDate>Mon, 23 Apr 2001 03:37:07 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2c0d84a6-5c87-4b51-8ece-a9ff210bc16a</guid><dc:creator>Andrew Neil</dc:creator><description>&lt;p&gt;In case anyone&amp;#39;s interested, here&amp;#39;s Keil&amp;#39;s answer:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;quot;we know about this.  We are working on a solution, but it is not that simple.&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
They don&amp;#39;t say why it&amp;#39;s so hard.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>