ARM Technical Support Knowledge Articles

WRONG CODE GENERATED FOR DOUBLE INDIRECTION

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

I have noticed that the compiler produces the same assembly code for the following two lines:

void F(void **f(void)){ f(); }
void F(void  *f(void)){ f(); }

Why?

ANSWER

This is not a compiler problem. The ANSI specification has a requirement for the code generated to be the same.

Article last edited on: 2004-06-15 14:42:54

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