hardbinding a memory address to a variable in code
How i can define a memory location for a variable. Here i mean i directly want to hardbind physical memory location in memory ,say x, for that variable or file? I mean i want to reserve some memory for that code and i want to hard bind to some pointer.
What precautions i should take while doing so? How i could avoid conflict over that memory use? i mean how i will notify memory allocator not to assign it to some one.
this is to avoid penalty occured while malloc and free.
atleast for knowledge sake
i am not aware first at all how to do it. So atleast for this reason i want to do it.
Here i talked on penalty in the sense of use of cpu by malloc and free