> 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”.
This list is not appropriate for such a question, use gcc-help@ instead.
--
Eric Botcazou
On 07/01/2018 03:19 PM, Mahmood Naderan via gcc wrote:
> 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”.
#include
int main() {
printf("%p\n", main);
}
--
Andrew Ha
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