Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/11/07 07:39
Read: times


 
#141714 - advice on the usage of absolute addresses
Responding to: ???'s previous message
John Hu said:
Any advice on making sure the usage of the _at_?

The basic advice is: Do not use it unless you have a specific reason that absolutely requires it.

In general, you should not fix absolute addresses in your software by any means (_at_ or similar, Linker directives, etc) unless you have a specific reason that absolutely requires it - the tools are generally best left to handle this.

The next question, then, is "what specific reason would absolutely require it?".

At the moment, I can think of only two:

1. Memory-mapped IO - in which case the address will (generally) be fixed by the external hardware, so the software tools cannot know about it unless you tell them explicitly;

2. If you require a version number or similar at a well-known location in your ROM; eg, so that it can easily be found and read using a PROM programmer.

One other is in a multiprocessor system where processors communicate via shared RAM - but this could be considered just a special case of 1 above...

List of 21 messages in thread
TopicAuthorDate
data declaration problem            01/01/70 00:00      
   Look at the Map file!            01/01/70 00:00      
      hmm... how?            01/01/70 00:00      
         Think about it - nothing weird!            01/01/70 00:00      
         So why did they do that?            01/01/70 00:00      
            thanks andy~            01/01/70 00:00      
               advice on the usage of absolute addresses            01/01/70 00:00      
                  so how do i check?            01/01/70 00:00      
                     It should be documented!            01/01/70 00:00      
                        i see            01/01/70 00:00      
   incomplete            01/01/70 00:00      
   Pay attention!            01/01/70 00:00      
      to what?            01/01/70 00:00      
         Jojo's back            01/01/70 00:00      
         please read the content in that link            01/01/70 00:00      
            gaps            01/01/70 00:00      
            ya...            01/01/70 00:00      
               read my post above ...            01/01/70 00:00      
                  I got it now            01/01/70 00:00      
               How to make a gap            01/01/70 00:00      
   Not a declaration problem!            01/01/70 00:00      

Back to Subject List