|
From: Joerg B. <jo...@we...> - 2003-08-01 09:56:06
|
Vincent Penquerc'h wrote:
>>joerg> gcc -S main.c && cat main.s
>
> [...]
>
>> call asinf
>
>
> When optimizing, glibc supplies inline asm implementations of
> some math routines. acosf/asinf may be among these (I'm at work
> with a Windows machine here, so can't check). Try -O2.
>
this is the relevant part of main.c compiled with -O2:
main:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
andl $-16, %esp
subl $12, %esp
pushl $0x3f000000
call asinf
fstp %st(0)
movl %ebp, %esp
xorl %eax, %eax
popl %ebp
ret
it looks like no further optimization has been inlined.
Joerg
|