[Icc-430] Reading MSP-430 status register from C....

llchisho at paradise.net.nz llchisho at paradise.net.nz
Mon Apr 14 21:45:03 PDT 2008


On Fri Apr 11 14:11:19 2008, Richard Man wrote :

> 1) doesn't work currently only because there's a bug in the asm
> inline expansion that it doesn't expand non-registered locals
> correctly. I will fix it.

I had noticed this as well - I thought it worked at first but it always
returned the same SP offset :-)
While somebody is working on this area, is it possible to have the use
of a variable via the %<name> mechanism in an asm statement linked to the
lifetime of the variable in the same way as using it in a C statement ?
This would prevent the compiler from re-using a register or stack location
which inline assembly is still using, and would also enable the compiler to
correctly assign a register or stack location based on the usage of all the
variables.

Len Chisholm.



More information about the Icc-430 mailing list