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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/12/08 00:29
Read: times


 
#156633 - Memory mapping
Responding to: ???'s previous message
Dave Brooks said:
Each different software program needs to respect the XDATA memory layout, so as not to step on anybodys memory along the way...

In this case, it's probably safest not to have the declarations, definitions & initialisations all in one file, with conditional compilation deciding whether you get definitions & initialisations, or just declarations.

Rather, make the header have just the declarations, and keep the definitions & initialisations in a separate source file.
That way the header can safely be issued to all and sundry without fear of them messing-up the actual memory map - because that is defined in the source file, which is kept under tight control...




List of 13 messages in thread
TopicAuthorDate
Initializing variables in header files...            01/01/70 00:00      
   Defintions only in source files            01/01/70 00:00      
      Coincidental Cohesion            01/01/70 00:00      
         and yet...            01/01/70 00:00      
            Quite possibly            01/01/70 00:00      
            Memory mapping            01/01/70 00:00      
               Now...            01/01/70 00:00      
                  RE: just saved myself some extra typing            01/01/70 00:00      
            Resources            01/01/70 00:00      
   Another problem            01/01/70 00:00      
   Abort, End, Exit Procudure and Shutdown.            01/01/70 00:00      
      I guess I gave it significant consideration            01/01/70 00:00      
      RE: verbose, over conditionalized            01/01/70 00:00      

Back to Subject List