Finding virtual address of functions in code

Mahmood Naderan via gcc gcc@gcc.gnu.org
Sun Jul 1 14:19:00 GMT 2018


Hi,
Is there any builtin function in C which prints the virtual address of functions including the main? I see __builtin_return_address() but that returns the “return address”.

Regards,
Mahmood



More information about the Gcc mailing list