ARM Technical Support Knowledge Articles

WARNING 271 (MISPLACED ASM/ENDASM CONTROL)

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

When I compile my C source file the compiler reports the following diagnostic:

WARNING 271:  MISPLACED ASM/ENDASM CONTROL

ANSWER

The asm and endasm statements may not be nested. Endasm requires that an assembly block be opened by a previous asm statement. For example:

#pragma ASM
.
.
.
assembler instruction(s)
.
.
.
.
#pragma ENDASM

MORE INFORMATION

Article last edited on: 2006-10-24 12:11:39

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