> void Test(unsigned long Base)
> {
> register volatile U8 * TestP = (volatile U8 *)(Base + 0x5555);
That is quite interesting. What happens if you remove the "register"
keyword? In theory, it should never be necessary - the compiler should
be slick enough to work out when it's more efficient to use a register
variable.
Also, I wonder if tinkering with the optimization level might change the
object code you get here.
--
-- Lewin A.R.W. Edwards (http://www.zws.com/)
Learn how to develop high-end embedded systems on a tight budget!
http://www.amazon.com/exec/obidos/ASIN/0750676094/zws-20Message
Re: [lpc2100] What Tha..?
2004-01-23 by Lewin A.R.W. Edwards