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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Michael Karas
08/21/12 11:47
Read: 1305 times
Beaverton Or
USA


 
#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      Michael Karas      08/21/12 11:47      
   I chose ....      Erik Malund      08/21/12 12:50      
      Method 3      Michael Karas      08/21/12 13:41      
         batch      Erik Malund      08/21/12 14:36      
            -Ddefine or -Ddefine=val      Per Westermark      08/22/12 06:10      
               Don't the IDE supports specifying a #define symbol in the pr      Andy Neil      08/22/12 14:01      
                  -Ddefine=val      Michael Karas      08/23/12 06:25      
                     C51 - not IDE      Per Westermark      08/23/12 07:43      
                        *also* IDE      Andy Neil      08/23/12 12:26      
                           Of course      Per Westermark      08/23/12 12:35      
                              that's the bugger      Erik Malund      08/23/12 13:25      
                                 You can, but...      Andy Neil      08/23/12 14:11      
                                    once more - the bugger      Erik Malund      08/23/12 14:19      
                           Ok, Let's See the Documentation      Michael Karas      08/23/12 18:49      
                              Not Found      Michael Karas      08/23/12 19:22      
                              Documentation      Andy Neil      08/24/12 12:24      
                                 Make Files      Michael Karas      08/24/12 18:26      
                                    make      Andy Neil      08/25/12 01:02      
                                    gnu make      Per Westermark      08/25/12 05:28      

Back to Subject List