We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Let's say that I have two files in my project: Startup.A51 and test.c
Some variables are allocated in Startup.A51; for example,
REG_STATUS DATA 0A0H
Also, some DATA variables are allocated in test.c.
data char value;
(1) Does the compiler or linker assign the variables to particular addresses (in DATA in this case)?
(2) Does the compiler/linker read the files in a particular order, assigning fixed locations first and then fitting non-fixed ones where ever it can?
(3) Let's say a function is called once at the beginning and then never again. Is the compiler/linker smart enough to reuse those DATA addresses or are they allocated forever?
Thanks for your help!