Re: __builtin_return_address from inline assembly on x86-64.

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

 



"Alok kataria" <alokkataria1@xxxxxxxxx> writes:

> So please let me know if there its possible to do a
> __builtin_return_address from assembly without making assumptions
> regarding the "rsp".

Sure, just use an extra argument to the asm, as in
    "r" (__builtin_return_address (0))

Ian

[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