ARM Technical Support Knowledge Articles

SRC DIRECTIVE

Applies to: General Topics

Answer

Information in this article applies to:


SYMPTOMS

For the "SRC" directive, the C166 compiler manual states that this directive cannot be used with uVision.  How is in-line assembly then added to a C source file?

CAUSE

There is a misprint in the manual that creates this misconception. What is actually meant is: there is no "compiler option" in the uVision interface. The SRC directive is active in the C166 Compiler.

RESOLUTION

Include the line:

#pragma SRC

in the top of your C source file. This generates an assembler file equivalent to your C code, in a new file with the same name as your C file but with an .SRC extension.

MORE INFORMATION

Article last edited on: 2005-07-15 10:37:00

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