This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Finding virtual address of functions in code
- From: "Mahmood Naderan via gcc" <gcc at gcc dot gnu dot org>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Sun, 1 Jul 2018 18:49:20 +0430
- Subject: Finding virtual address of functions in code
- Reply-to: Mahmood Naderan <nt_mahmood at yahoo dot com>
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