ARM Technical Support Knowledge Articles

HOW TO CREATE ASSEMBLY FILES FROM C FILES

Applies to: RealView C Compiler

Answer


Information in this article applies to:


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 uVision 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.

SEE ALSO

ATTACHED FILES

Request the files attached to this knowledgebase article.

Article last edited on: 2012-09-11 06:48:27

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential