How to know the memory location for C functions?

Suppose I have the following C program under Linux. When I run the program, how should I know where the function main() and Foo() are loaded in the physical memory?

int main()
{
    Foo();
    exit(0);
}

Foo()
{
    printf(“hello world\n”);
}

所有跟帖: 

define pointers to functions -mc3361- 給 mc3361 發送悄悄話 (272 bytes) () 09/19/2011 postreply 10:48:55

請您先登陸,再發跟帖!