How to know the memory location for C functions?

來源: flyeagle_abcd 2011-09-18 20:08:35 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (363 bytes)

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

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”