I want to locate a C function at a specific location in the memory. How can I do that?
Regards, Gaurav
As Christoph said, your actual requirement is quite different from the question that you originally asked!
"What you are really trying to do it excluding a certain address range from the pool that the linker uses to locate functions"
Absolutely; and the Linker has specific controls to do exactly that - see the appropriate Linker Manual:
http://www.keil.com/support/man/docs/bl51/ http://www.keil.com/support/man/docs/lx51/
If you're using uVision: www.keil.com/.../uv3_ca_ovwconfigdialogs.htm http://www.keil.com/support/man/docs/uv3/uv3_dg_target51.htm http://www.keil.com/support/man/docs/uv3/uv3_dg_l51loc.htm http://www.keil.com/support/man/docs/uv3/uv3_dg_l251loc.htm