<?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>How to combine .SRC files?</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/30866/how-to-combine-src-files</link><description> 
Hi, 
As we know the Keil C can generate the .SRC file for each .C file in
a project, but without combining them. I need to combine all the .SRC
files into one, just like what we saw in the &amp;quot;Deassembly&amp;quot; window
while we are executing debugging. Anyone</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/151545?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2013 23:13:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4776cbaf-c3d6-4a37-aaac-e861c345533f</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
As long as you have the linker link complete object files after
each other and not have the linker cut/paste individual functions and
move them around in the memory space (i.e. so each *.SRC file
contains a continuous memory sequence) then it&amp;#39;s enough to supply the
*.SRC files in the same order as the linker links them to the COPY
command. And voila - COPY will be able to merge them in the same
order as you supplied them.&lt;/p&gt;

&lt;p&gt;
Notice that the linker do care about the order of source files in
the project, when it comes to processing the object files into a
binary...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/128334?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2013 15:24:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:21b92603-0c26-432d-b292-71f0e364f260</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;We also want to know the original C and ASM code that causes
this problem.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Your belief that the .src files are a suitable starting point to
reach that goal is a classic case of jumping to conclusions. What
you&amp;#39;re searching for are absolute-address list files made by the
linker. Compiler output can&amp;#39;t help you because the compiler has no
control over where in the final program the pieces of an individual
source code module go. The linker controls that. And if you had spent
some time investigating the capabilities of your tools before jumping
to your conclusion, you would have found out how get the linker to
get you the kind of listing you want.&lt;/p&gt;

&lt;p&gt;
But that&amp;#39;s all beside the point, because what you &lt;b&gt;really&lt;/b&gt;
need is a way to connect a debugger to the 8051 core inside your
FPGA. Any other approach is a huge waste of time that could only
possibly be justified if you&amp;#39;re absolutely certain that a debugger
can&amp;#39;t be made to work.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/151554?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2013 10:06:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:25d0f123-2884-4270-8a82-4e363db3bf7b</guid><dc:creator>John Show</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Westonnsupermare,&lt;br /&gt;
We are not good at the compiler tools, therefore, we thought Keil is
a very good tool that helps. Could you suggest some disassembler
tools?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/147043?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2013 10:01:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7bd92eb7-8c24-4ca4-b08e-12cc2d8dcb79</guid><dc:creator>John Show</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Per,&lt;br /&gt;
But I need the separate .SRC files be combined as the sequence they
will be executed. Maybe I can say, I need to &amp;quot;link&amp;quot; the separate
files.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/150858?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2013 07:22:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e09f4ad8-69e8-4608-8a7f-413237089876</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
You&amp;#39;re developing an 8051 in HDL, and you can&amp;#39;t write or find a
disassembler? Seems like a validation step missing there
somewhere.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/145553?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2013 04:58:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f4db7672-bbd1-48da-8240-ddad62f8fcd4</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
COPY is a command available from the command line in Windows.&lt;/p&gt;

&lt;p&gt;
If you have multiple *.src files, then COPY can be used to
concatenate the contents of them into a single file. But COPY can&amp;#39;t
be used for copy/pasting data from a window in the IDE.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/143451?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2013 01:17:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bfc3cac5-2d0a-4949-85d4-049e50100029</guid><dc:creator>John Show</dc:creator><description>&lt;p&gt;&lt;p&gt;
Sorry for my fault, what I am doing is copying &amp;quot;disassembly&amp;quot; not
&amp;quot;deassembly&amp;quot;.&lt;br /&gt;
Copying the entire content of the &amp;quot;disassembly&amp;quot; window requires
scroll down the cursor and select all the lines, since there is not a
&amp;quot;select all&amp;quot; option. Since I am lazy, I fell it&amp;#39;s inconvenient :)&lt;br /&gt;
If &amp;quot;copy&amp;quot; is the only way to do what I want, it&amp;#39;s ok for me. Thanks
for your help!!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/140631?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2013 01:07:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7e76f280-4e46-4deb-8cf4-19c3b52b92d8</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
If you are going to repeat that quote, then maybe consider
deassembly -&amp;gt; disassembly.&lt;/p&gt;

&lt;p&gt;
So why do you not think COPY can represent an automatic way to do
it? You are aware that you can add custom build steps for the
project?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/131323?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2013 19:22:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f83b8e8d-4396-4251-a95b-e5093eea6a13</guid><dc:creator>John Show</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks! What I am doing currently is, select all the content shown
in the &amp;quot;Deassembly&amp;quot; window, then &amp;quot;COPY&amp;quot; them to a new file. But I
think it&amp;#39;s inconvenient.&lt;br /&gt;
I am trying to find an &amp;quot;automatic&amp;quot; way on this.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/128333?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2013 09:30:40 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b3f0558d-0ce7-425c-abac-a00451924056</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes, the command line command &amp;quot;COPY&amp;quot; can do that.&lt;/p&gt;

&lt;p&gt;
Did you take a look at it after I suggested it the first time? It
really can take multiple input files and produce a single output
file.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/117396?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2013 08:50:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7fcc96d6-b7d4-42b1-ac83-0448ddea1c96</guid><dc:creator>John Show</dc:creator><description>&lt;p&gt;&lt;p&gt;
We are developing a 8051 MCU, and we use the compiled .hex file as
the test pattern to simulate our Verilog code. But we are facing a
problem, if some error occurs, we can only know the code address
which is being executed currently. We also want to know the original
C and ASM code that causes this problem.&lt;br /&gt;
One way to have this information is to open the &amp;quot;Deassembly&amp;quot; debugger
window every time we are debugging, or we can copy the content of
that window shows. However, it is inconvenient. Therefore, I am
wondering is there any method can generate the file I want
automatically?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/107315?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2013 08:18:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6d7e633b-ea42-4821-9480-aa21b200ef2e</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Still impossible to know what you are attempting to do - get
around the code size limitation of the evaluation version of the
compiler?&lt;/p&gt;

&lt;p&gt;
The tools have way better methods for filling that flash with the
machine code data - absolutely no reason to involve any .SRC
files.&lt;/p&gt;

&lt;p&gt;
And a working debugger should be able to use the debugging
information to translate between addresses in the processor memory
and corresponding source code - that translation + description of
data types is basically the goal with the debugging information.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/107320?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2013 07:55:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cf2ad128-555b-41ac-b38d-4fd66e087865</guid><dc:creator>John Show</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Per, sorry for I wrote the wrong name.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/81481?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2013 07:52:44 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:71f6abda-a648-46a6-a4ef-7ea14879fbe8</guid><dc:creator>John Show</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks, Arthur.&lt;/p&gt;

&lt;p&gt;
However, what I really need is combine all the files with correct
address (or sequence?), just like the &amp;quot;Deassembly&amp;quot; window shows. We
can have the original C codes as well as the assembled ASM codes, and
all the codes are placed as the real location in the flash memory.
Not just copy one file and paste to another. I need it for simulating
our developed 8051 MCU.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to combine .SRC files?</title><link>https://community.arm.com/thread/68393?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2013 07:41:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:730dd698-24a4-41f7-9e85-17032e527e72</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
You would think the good old operating system could help you -
have you considered what magic the command line &amp;quot;copy&amp;quot; command is
able to perform?&lt;/p&gt;

&lt;p&gt;
But why do you feel that you need to combine multiple .src
files?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>