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
On Thu, Jan 7, 2010 at 11:46 AM, Paulo J. Matos pocma...@gmail.com 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
{
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 apart