Re: Intel P6 vs P7 system call performance
Thu, 19 Dec 2002 16:20:42 +0100 (CET)

On 19 Dec, Richard B. Johnson wrote:
> On Thu, 19 Dec 2002 wrote:

>> long_call:
>> pushl $0xfffff000
>> ret
> Because the number pushed onto the stack is a displacement, not
> an address, i.e., -4095. To have the address act as an address,

Not true. A ret(urn) is (sort of) equivalent to 'pop %eip'. The above
code would actually jump to address 0xfffff000, but probably be slow
since it confuses the branch prediction.


Bart Hartgers - TUE Eindhoven
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at