|ARM Technical Support Knowledge Articles|
Applies to: General Topics
Information in this article applies to:
How do I create an assembler file from my C source file?
Use the SRC directive to create assembler output from the C compiler. The SRC directive causes the compiler to generate an .SRC file with the same name as your C file. You may then assemble the .SRC file with the assembler. Note that if you make changes to the .SRC file, you should rename it to .A51 or .A66 since re-compiling the C file may overwrite the .SRC file.
You may use the SRC directive as the first line in the file. For example:
#pragma src . . .
Or, you may use it on the command line:
c51 myfile.c src c166 newfile.c src
Article last edited on: 2008-03-10 02:38:45
Did you find this article helpful? Yes No
How can we improve this article?