Paulo J. Matos wrote:
> This case is interesting because it seems that callee is being inlined
> into caller. Still intriguing is that the same happens with: -Os
> -fno-inline -fno-inline-small-functions
> -fno-inline-functions-called-once
There are loads of other inline-related -f options apar
On Thu, Jan 7, 2010 at 11:46 AM, Paulo J. Matos wrote:
> Hi all,
>
> With the code:
> -
> extern void display(unsigned int);
>
> void callee(int z) // Sibcall worth it
> {
> display(z);
> }
>
> void caller(int x, int y) // Sibcall not worth it
> {
> display(x);
>
Hi all,
With the code:
-
extern void display(unsigned int);
void callee(int z) // Sibcall worth it
{
display(z);
}
void caller(int x, int y) // Sibcall not worth it
{
display(x);
display(y);
callee(x*y);
}
-
I have put a f