This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Locating C code

I want to locate a C function at a specific location in the memory. How can I do that?

Regards,
Gaurav

Parents
  • I do not want to place the function at a specific location but I want to avoid certain memory range, specifically the 0-4K range.

    It's good that you said that, because that is quite different from "locating a function at a certain address" !

    Using the answer you got for the latter address, you would have had to locate all of your functions by hand, and that is a true nightmare.

    What you are really trying to do it excluding a certain address range from the pool that the linker uses to locate functions - i.e. you want to modify the memory map.

Reply
  • I do not want to place the function at a specific location but I want to avoid certain memory range, specifically the 0-4K range.

    It's good that you said that, because that is quite different from "locating a function at a certain address" !

    Using the answer you got for the latter address, you would have had to locate all of your functions by hand, and that is a true nightmare.

    What you are really trying to do it excluding a certain address range from the pool that the linker uses to locate functions - i.e. you want to modify the memory map.

Children