<?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>including source files</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/14121/including-source-files</link><description> Hello, 
 
I&amp;#39;ve a quick question. I have a number of source files which I want to use in my main file. How do I do this using uVision and assembly language? 
 
I&amp;#39;ve tried 
include &amp;quot;myfile.asm&amp;quot; 
 
and then added the files using the edit file option. The</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: including source files</title><link>https://community.arm.com/thread/37416?ContentTypeID=1</link><pubDate>Fri, 20 Apr 2001 11:32:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a391212b-2c93-46d2-8d0f-4fcb1e9f0d7a</guid><dc:creator>Andrew Neil</dc:creator><description>&lt;p&gt;If you&amp;#39;ve included the files within your &amp;quot;main&amp;quot; file, then you must &lt;b&gt;only&lt;/b&gt; build the main file!&lt;br /&gt;
&lt;br /&gt;
By adding the &amp;quot;sub&amp;quot; files to your Project, you are telling uVision to build those files, and then the &amp;quot;main&amp;quot; file includes them as well!&lt;br /&gt;
&lt;br /&gt;
If you want to have the files listed in the Project just to make it easier for you to open them for editing, clear the &amp;#39;Include in Target Build&amp;#39; and &amp;#39;Always Build&amp;#39; options for those files;&lt;br /&gt;
Or, put them in a separate Group, and disable those options for the Group.&lt;br /&gt;
&lt;br /&gt;
Note that you will not get valid source line number debug info for the included files - see &amp;quot;BTW2&amp;quot; in:&lt;br /&gt;
&lt;a href="http://www.keil.com/forum/docs/thread471.asp"&gt;http://www.keil.com/forum/msgpage.asp?MsgID=1807&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>