Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URGENT : GETTING A STATIC VARIABLE ADDRESS DURING COMPILATION

Status
Not open for further replies.

ben51

Technical User
Apr 29, 2002
2
FR
I would like to be able to get the addresses of the local static variables that I use in a c program, during the compilation. Could anyone help me on the way to get them?
Thank you for your help;
ben
 
sorry fried you cant get the address of any variable
during compile time, its only during when the exe is loaded
that you get address of any varible.

if you have a different question please specify

hawapani
 
All variables will be allocated memory space with reference to some base location. All this information will be stored in a symbolic table. Until the exe is loaded into the main memory, there is no way of telling the address of any variable.

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top