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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/26/05 12:10
Read: times


 
#101529 - Diagramatically (warning - widescreen!)
Responding to: ???'s previous message
Peter Dannegger said:
The complete code generation is always a two stage process:
compiler/assembler, linker

And a further stage may be:
located binary -> Intel-hex

Diagramatically:
+------+                             +---------------+
|Source|---> }                { ---> |Relocatable OBJ|---> }               
+------+     }                {      +---------------+     }                                                      
   :         }  Translators   {               :            }
   :         } -------------> {               :            }
   :         }                {               :            }  Linker  +---------------+  Locator  +------------+  OBJ2HEX  +---------+
+------+     }                {      +---------------+     } -------->|Relocatable OBJ|---------->|Absolute OBJ|---------->|Intel HEX|                                                        
|Source|---> }                { ---> |Relocatable OBJ|---> }          +---------------+           +------------+           +---------+               
+------+                             +---------------+     }
                                                           }
                                           +---------+     }
                                           |Libraries|---> }
                                           +---------+



'C',                              External References                 Linker resolves             Locator fixes the        Hex File represents
Assembler,                        are not yet known                   external references,        Relocatable OBJ          the pure binary, executable
Pascal, etc                       - hence 0000 "dummies"              and combines                to absolute              code - no data, and no
                                                                      individual OBJs into        addresses                no debug information.
                                                                      one single, relocatable     
                                                                      OBJ

Note that the Keil Linkers (like many modern linkers) combine the functions of both Linker and Locator.

Note thet the OBJ files are not executable by a real processor - they contain addition information required by the Linker & Locator, plus symbol & debug information.
To be executed by a real processor, the Absolute Object file must be converted to Hex, pure binary, or similar.

However, a Simulator can load the Absolute Object file - it separates out the symbol & debug information from the executable code.

List of 24 messages in thread
TopicAuthorDate
Silab IDE Problem            01/01/70 00:00      
   Cross-post            01/01/70 00:00      
   Linker?            01/01/70 00:00      
      Silab IDE Problem            01/01/70 00:00      
      Silab IDE Problem            01/01/70 00:00      
         OBJECTEXTEND            01/01/70 00:00      
            Silab IDE Problem            01/01/70 00:00      
            Silabs does not support anything            01/01/70 00:00      
               debugger - OBJECTEXTEND??            01/01/70 00:00      
                  yes, it does, in the usual stupid way            01/01/70 00:00      
               Silab IDE Problem            01/01/70 00:00      
            Silab IDE Problem            01/01/70 00:00      
               New features...?            01/01/70 00:00      
                  That's what I do            01/01/70 00:00      
                  Silab IDE Problem            01/01/70 00:00      
         Linker Listing File            01/01/70 00:00      
            Silab IDE Problem            01/01/70 00:00      
               Clue !!            01/01/70 00:00      
   Why you think so ?            01/01/70 00:00      
      Diagramatically (warning - widescreen!)            01/01/70 00:00      
         Good diagram            01/01/70 00:00      
            Locator            01/01/70 00:00      
               Works perfect at my place!            01/01/70 00:00      
                  "investing in an ICE"            01/01/70 00:00      

Back to Subject List