[Icc-arm] Inline asm with variables

Harald Kipp harald.kipp at egnite.de
Thu Sep 6 10:23:00 PDT 2007


Gennadiy Kiryukhin schrieb:
> My variables are global and several functions have access to them. If 
> I add a local declaration, I would not be able to access the global 
> variables.
>

Well, you could assign the contents of the global to the local variable 
first.

But actually I mixed up AVR with ARM. Sorry for the confusion.

I'd suggest to check the map file and make sure, that a and b are 
defined. Possibly the optimizer removed the variables, if they haven't 
been referenced in the C code. Just an assumption.

Harald



More information about the Icc-arm mailing list