avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Re: Wierd Calls.


From: David VanHorn
Subject: Re: [avr-gcc-list] Re: Wierd Calls.
Date: Wed, 11 Mar 2009 17:17:19 -0400


 
The assembly above comes from the __udivmodhi4 helper function (found
in libgcc.a), which is a helper function for performing a 32-bit
divide.
 
Let me guess.. It was stuck on below the LCD routines in memory, and AVR Studio didn't know that somehow? 
 
Gak..
 
Ok.
 
I'm still puzzled as to why the compiler didn't change:
 
// This takes 53uS at 4 MHz
Bin = ( A / Data_Divisor )  // Data_Divisor is a constant, 32.
 
into
 
// This takes 8.9uS at 4 MHz
Bin = ( A >> 5)
 
I have -Os specified. 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]