On Tue, 24 Nov 2009, Raphael Neider wrote:

>> Specifically during compiler generated calls to _mullong although I
>> haven't tried any others yet.
>
> A quick look at the generated .asm shows that sdcc replaces the local
> union-type variables x, y, t, t1, and t2 with global variables -- which
> are of course corrupted during the second (nested) execution of the
> interrupt routine.

OK - I did have a look at the C source - which seems like it ought to be 
all locals, but I guess the compiler doesn't like unions?

> I will look into this and try to have them placed in the access bank
> like other locals.

When you want someone to test it, let me know!

Thanks,

Gordon

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to