Hi, I am Practicing Assembly Language Programming for ARM7TDMI Architecture. I want to generate the Assembly Source code File for my input C source File (Like Listing File Generation).Is it Possible in Keil.If yes mean,What all are the configuration i have to do in target option Tab.
Thanks in Advance, Shanmugam.s
Use the Options -> Listing tab, check the "Assembler Listing" box, although this does not work in the eval release as I recall.
Thanks for your Reply...
But Sorry I cant Get your words exactly.
My Doubt was,
Let Take the input file as below.
Main.c ========== /************ start of file ************/ void main() { Statement1; Statement2; Statement3; Function1(); Function2(); }
Function1() { Statement1; Statement2; }
Function2() { Statement1; Statement2; } /*********** End of File ***************/
Just Take Main.C as input File.while we build this project this will generate hex file. Here i want the asm file(main.asm) equivalent to the main.c.while debugging this program the disassembly section allow as to see the asm file equivalent to c file.But i want the asm file separately in my project folder. Is it possible?
Thanks and Regards, Shanmugam.S
Information in this article applies to:
RealView Compiler Version 3 QUESTION How do I create an assembler file from my C source file?
ANSWER Use the --asm control to create assembler output from the C compiler. The --asm control causes the compiler to generate an .S file with the same name as your C file. You may then assemble the .S file with the assembler.
The --asm control is entered in µVision under Project — Options — C/C++ tab, Misc Controls. Also disable the option Project — Listing — C Compiler Listing since this uses a different output.
The Assembly file will have a .ASM extension, and will be in your listing file folder for your project.
=====================================================================================
i have used the above mentioned setting in keil for generating the asm source file from c source file but it generating the error given below
Unrecognized option -S or --asm error
Do you have a paid-for, licensed version of the tools?
I think that is evaluation version.Sorry u already told that it ll not work in the evaluation version. what is the other possibilities avail to do this one???? In order to buy the licensed version what i have to do???
Simple thing i need is i want the asm equivalent to the c file.
Thanks and Regards, Shanmugam.s