Liu Haibin <[EMAIL PROTECTED]> writes:
> I compiled the following code using nios gcc -da -O3 (gcc version 3.3.3)
>
> #include
> #define PI (4*atan(1))
>
> double rad2deg(double rad)
> {
> return (180.0 * rad / (PI));
> }
>
> The begining of the .s file is
> rad2deg:
> addi
Hi,
I compiled the following code using nios gcc -da -O3 (gcc version 3.3.3)
#include
#define PI (4*atan(1))
double rad2deg(double rad)
{
return (180.0 * rad / (PI));
}
The begining of the .s file is
rad2deg:
addisp, sp, -16
stw fp, 8(sp)
mov r6