Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2100] What Tha..?

2004-01-23 by Lewin A.R.W. Edwards

> 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-20

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.