Re: call instruction question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





horseriver wrote:
                1. why use "fc ff ff ff "  in call instruction?
The call uses PC relative addressing that at execution time is relative to the address of the instruction AFTER the call instruction. But the relative fixup that the compiler can request from the linker is relative to the location being fixed, which is inside the call instruction. So the final value required is four less than the fixup the linker will require, so the compiler has initialized the value to be fixed as minus four.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux