[splint-discuss] Parse error with @ from the IAR compiler

Ed Beroset beroset at mindspring.com
Fri Jan 19 08:53:51 PST 2007


Keith.Richeson at us.elster.com wrote:

>I'm working on an embedded project and we are using the IAR C compiler for
>the 8051.  One of the extensions to the compiler is that it allows a user
>to "locate" a variable using the @ symbol.  That is to say, if I want to
>make sure that a variable gets allocated at location 0xFFE0 in RAM, I can
>use the following declaration:
>
>int myVar @ 0xFFE0;

I think that compiler also has a #pragma location=xxx that you could use instead.  That way the compiler is happy and splint will work.

#pragma location=0xffe0
int myVar;

Ed


More information about the splint-discuss mailing list