//------------------------------------------------------------------- // whereami.cpp // // This two-line program prints the location in virtual memory // where the machine-code for its 'main()' function is placed; // it can serve as an example in a 'page-table walk' exercise. // // programmer: ALLAN CRUSE // date begun: 07 FEB 2005 //------------------------------------------------------------------- #include // for printf() int main( void ) { printf( "\nmain=%p \n\n", main ); }