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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/01/08 22:47
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#155367 - Common Method...
Responding to: ???'s previous message
The common method used is to compile the various modules with their individual compilers into a common relocatable object format. Then a linker that is compatible with said object format links all the objects together into a final single executable.

In this process there is a very strong need to make sure that the calling interface conventions are the same for all the compilers. This includes the way parameters are passed and results are returned.

If you care to read my opinion on this subject....This endeavor is not worth messing around with. Embedded compilers are notorious for being both proprietary and having platform specific dependencies. This is especially true for the 8051 realm of HLLs. The concept of sharing code via special constructions or coding kludges ends up with a project environment that is a maintenance nightmare. In the long run anything you think that you may save by not porting all your code over to a single compiler environment will be offset by additional code preparation, debugging, maintenance, increased FLASH usage, run time inefficiencies and built instructions documentation.

Michael Karas


List of 31 messages in thread
TopicAuthorDate
Info exchange between different compilers            01/01/70 00:00      
   cumbersome, but possibly possible            01/01/70 00:00      
   This is how others would do it in days gone by            01/01/70 00:00      
      all well and good            01/01/70 00:00      
   Common Method...            01/01/70 00:00      
      I totally agree            01/01/70 00:00      
      Ok lets leave aside the issue of different compile            01/01/70 00:00      
         Fundamentals            01/01/70 00:00      
            You use a Linker............            01/01/70 00:00      
         Lots of issues here            01/01/70 00:00      
            +            01/01/70 00:00      
               For user code you would...            01/01/70 00:00      
                  Also consider....            01/01/70 00:00      
                     Also consider.... yes            01/01/70 00:00      
                        Ah Ha....Save an MCU at what cost?            01/01/70 00:00      
                           Save an MCU at what cost? - too high            01/01/70 00:00      
                  For user code you would.............            01/01/70 00:00      
                     WHY??            01/01/70 00:00      
                        Maybe...            01/01/70 00:00      
                           now we are going to OS and \'loaded application\'            01/01/70 00:00      
                              More "Horse Power" ?            01/01/70 00:00      
                                 HW or OS            01/01/70 00:00      
                                    How would you rate this ...            01/01/70 00:00      
                                       OK            01/01/70 00:00      
                                    No Bees Left            01/01/70 00:00      
                                 Not the MHz it is the core            01/01/70 00:00      
                                    Ap, I'm waiting ....            01/01/70 00:00      
                                       It wasn't asked in relevance to any Mcu            01/01/70 00:00      
                                          so what is it doing here???            01/01/70 00:00      
                                             You tell me that .            01/01/70 00:00      
                                                I AM sorry, but I lost my crystal ball.            01/01/70 00:00      

Back to Subject List