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

memeory and procedure location

hi

i have project with in system programable ability

some of procedure in one c file have main and must not modified and some other most modify
i have one block of code variable must modify
_at_ procedure only operate for one procedure or var

how set in c51 all procedure in one unit start from define address (gorup addressing)

and some other gorup to other start code address ?

Parents
  • With C51 each procedure is in a single segment. For example procedure MyProc() in file MyFile.c is un segment ?PR?MYPROC?MYFILE. With linker you can locate each segment at a specific adress with directive code, bankn or common. For example, directive code(?PR?MYPROC?MYFILE(5000h)) locate procedure MyProc() at 5000h.

Reply
  • With C51 each procedure is in a single segment. For example procedure MyProc() in file MyFile.c is un segment ?PR?MYPROC?MYFILE. With linker you can locate each segment at a specific adress with directive code, bankn or common. For example, directive code(?PR?MYPROC?MYFILE(5000h)) locate procedure MyProc() at 5000h.

Children
No data