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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/21/12 17:47
Read: times


 
#188105 - Best Way to Select Options
I have a situation where I want to build several variants of the executable code from a single set of 8051 Assembler and Keil C51 source files. I would intend to guide the tools to modify the build process for each variant through the use of conditional compilation (i.e. #if / #else / #endif usage).

I can see several ways to achieve this goal and will present two of them. I would like to see some discussion on the merits or disadvantages of either of these methods, or any other possible method that anyone wants to inject into the discussion.

Method 1 - Multiple uV4 Project Files

Using multiple Keil project files has the advantage that one can easily use the projects to manage the various build configurations. This is particularly valid for projects where the Linker segmemt mapping commands vary between the various executables. This also lends itself well to use of the interactive GUI environment for editing and building the project. One disadvantage of this approach is that it requires common options and configurations between the various project files to be maintained in duplicity.

Method 2 - Single uV4 Project File

In this method a single project file drives the build process thus keeping all common options and configurations confined to a single environment. Configuration for the various builds has to be communicated to the project file via an environment controlled include file. (As far as I know there is no way to pass symbol definitions on the command line to a uV4 project file but I would like to hear otherwise from anyone that knows). Another problem with this approach is it is more diffucult to manage differing ling segment maps between the various executable configurations.

Please share your ideas.

Michael Karas




List of 19 messages in thread
TopicAuthorDate
Best Way to Select Options            01/01/70 00:00      
   I chose ....            01/01/70 00:00      
      Method 3            01/01/70 00:00      
         batch            01/01/70 00:00      
            -Ddefine or -Ddefine=val            01/01/70 00:00      
               Don't the IDE supports specifying a #define symbol in the pr            01/01/70 00:00      
                  -Ddefine=val            01/01/70 00:00      
                     C51 - not IDE            01/01/70 00:00      
                        *also* IDE            01/01/70 00:00      
                           Of course            01/01/70 00:00      
                              that's the bugger            01/01/70 00:00      
                                 You can, but...            01/01/70 00:00      
                                    once more - the bugger            01/01/70 00:00      
                           Ok, Let's See the Documentation            01/01/70 00:00      
                              Not Found            01/01/70 00:00      
                              Documentation            01/01/70 00:00      
                                 Make Files            01/01/70 00:00      
                                    make            01/01/70 00:00      
                                    gnu make            01/01/70 00:00      

Back to Subject List