ts-7000
[Top] [All Lists]

[ts-7000] Re: Strange shifting variables

To:
Subject: [ts-7000] Re: Strange shifting variables
From: "Andy Mercier" <>
Date: Fri, 28 Mar 2008 17:38:43 -0000
Insure that your pointers to registers are declared with "volatile".

Frequently programmers, including me (only sometimes), think there's a
compiler bug but it turns out it's poor programming. Remember, there's
a good chance that the compiler version you're using has been used to
build the Linux kernel and the compiler was probably also used to
build itself (or the next version of the compiler). Usually, if that
kind of compilation is done it will show compiler bugs. Your code is
still pretty simple in comparison (and most of mine is too).

----
Andy

 --- In  "berryma4" <> wrote:
>
> 
> 
> Thank you!
> 
> I wasn't using the -mcpu=arm9 option, but now I am.  But
> unfortunately, I'm still getting this shift ... but only on arm .. my
> code doesn't do this on my x86 board.  So, the data is written to a
> register after the case statement, ... what happens to it next?  Why
> the shift?  Seems like a compiler optimization problem.
> 
> Thank you for any help!
> Eric
>



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU