[Icc-430] Re: Interrupt handler wrapper preserves R8,9 - repost

Richard richard-lists at imagecraft.com
Thu Jan 25 16:05:58 PST 2007


OK, for the final release, I will change the compiler not to save/restore 
the preserved registers even if there is an external function call.

At 03:11 PM 1/25/2007, bailey at peak.org wrote:
>Richard,
>     As I commented earlier, I strongly agree with Kris on this.  I
>understand your point of view well (I spent a decade doing compiler support
>myself!), but if you follow your logic further you would decide that you
>really should preserve ALL the registers with the wrapper, "just in case"!
>
>     This is a real issue for folks and you already have a calling convention
>that you have defined and is well documented.  Better that folks that follow
>the rules get good results than people who don't follow the rules have
>bad code with a slightly higher chance of working by accident.
>

// richard (This email is for mailing lists. To reach me directly, please 
use richard at imagecraft.com) 



More information about the Icc-430 mailing list