We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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 "Deassembly" window while we are executing debugging. Anyone can help on this?
Thanks!!
John
Sorry for my fault, what I am doing is copying "disassembly" not "deassembly". Copying the entire content of the "disassembly" window requires scroll down the cursor and select all the lines, since there is not a "select all" option. Since I am lazy, I fell it's inconvenient :) If "copy" is the only way to do what I want, it's ok for me. Thanks for your help!!
COPY is a command available from the command line in Windows.
If you have multiple *.src files, then COPY can be used to concatenate the contents of them into a single file. But COPY can't be used for copy/pasting data from a window in the IDE.
You're developing an 8051 in HDL, and you can't write or find a disassembler? Seems like a validation step missing there somewhere.
Hi Per, But I need the separate .SRC files be combined as the sequence they will be executed. Maybe I can say, I need to "link" the separate files.
Hi Westonnsupermare, 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?
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'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.
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...