Yes maybe. For example, consider the following C code:
int f(); int g() { return f(); }
When I compile this with gcc 4.6.3
with -O3
on x86-64
, I get the following assembly for g()
:
g: xorl %eax, %eax jmp f ; <==== unconditional jump to f
source share