f******e 发帖数: 582 | 1 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”);
} |
G*****h 发帖数: 33134 | 2 &main
&Foo
but it's only virtual address.
need high privilege to translate to physical address.
,
【在 f******e 的大作中提到】 : 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() : {
|
f******e 发帖数: 582 | 3 Thanks for your reply.
Could you have more details how to have "high privilege to translate to
physical address."?
Thanks again. |
G*****h 发帖数: 33134 | 4 google.. usually user mode app does not need to know physical address.
drivers will do that kind of work.
【在 f******e 的大作中提到】 : Thanks for your reply. : Could you have more details how to have "high privilege to translate to : physical address."? : Thanks again.
|