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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/07/10 14:42
Read: times


 
#173915 - Surely not...
Responding to: ???'s previous message
If I understand what you're saying Erik I read that as quite the opposite...

SDCC Manual said:
3.1.3 Projects with Multiple Source Files
SDCC can compile only ONE file at a time. Let us for example assume that you have a project containing the
following files:
foo1.c (contains some functions)
foo2.c (contains some more functions)
foomain.c (contains more functions and the function main)
The first two files will need to be compiled separately with the commands:
sdcc -c foo1.c
sdcc -c foo2.c
Then compile the source file containing the main() function and link the files together with the following command:
sdcc foomain.c foo1.rel foo2.rel
Alternatively, foomain.c can be separately compiled as well:
sdcc -c foomain.c
sdcc foomain.rel foo1.rel foo2.rel
The file containing the main() function MUST be the FIRST file specified in the command line, since the
linkage editor processes file in the order they are presented to it. The linker is invoked from SDCC using a script
file with extension .lnk. You can view this file to troubleshoot linking problems such as those arising from missing
libraries.


*.rel files are SDCC's object files, so surely what the above is saying is that foomain.rel, foo1.rel and foo2.rel would only be linked, and NOT recompiled?


List of 39 messages in thread
TopicAuthorDate
SDCC download            01/01/70 00:00      
   Here you go...            01/01/70 00:00      
   newest            01/01/70 00:00      
      Has any effort gone into documentation?            01/01/70 00:00      
         documentation            01/01/70 00:00      
            Just to add...            01/01/70 00:00      
               more howto-s            01/01/70 00:00      
                  the first 'oddity' is ...            01/01/70 00:00      
                     I think you dreamt that one eric            01/01/70 00:00      
                        No - it's a well-known Gotcha! in SDCC!            01/01/70 00:00      
                           Reference: ISRs (or prototypes) must be in same file as main            01/01/70 00:00      
                     linking            01/01/70 00:00      
                        I see it not correct            01/01/70 00:00      
                           I don't understand            01/01/70 00:00      
                              what is it you do not understand?            01/01/70 00:00      
                                 Does it not recognise...            01/01/70 00:00      
                                 Surely not...            01/01/70 00:00      
                                    "magic"            01/01/70 00:00      
                                       That's not the fault of 'C'!!            01/01/70 00:00      
                                       highly unusal, but            01/01/70 00:00      
                                       Try java etc            01/01/70 00:00      
                                 I now see why is this confusing            01/01/70 00:00      
               emulation?            01/01/70 00:00      
                  Source-level debug            01/01/70 00:00      
                     symbol information            01/01/70 00:00      
                        re: symbol information            01/01/70 00:00      
                           hex-file download?            01/01/70 00:00      
                              hex vs omf            01/01/70 00:00      
                     Keil proprietary stuff?            01/01/70 00:00      
                        extended omf51            01/01/70 00:00      
                           omf51 vs cdb            01/01/70 00:00      
                        proprietary file format?            01/01/70 00:00      
                           I don't see why not            01/01/70 00:00      
                              So, what do *you* mean by, "proprietary" ?            01/01/70 00:00      
                                 AutoCAD            01/01/70 00:00      
                           Yes            01/01/70 00:00      
                              patentable vs proprietary            01/01/70 00:00      
                                 Proprietary is a questin of ownership, not protection            01/01/70 00:00      
   bouncing email            01/01/70 00:00      

Back to Subject List