更换语言:
Contact Us
Home  › CooCox CoBuilder › Project Configuration

Project Management   > Project Configuration  

After creating a project, CoBuilder will automatically generate a builder.xml file for the project. It contains the project configuration. By editing the file to configure the project. There is an interface in CoBuilder to help us to edit builder.xml file.

Quick Navigation

 

Opening Project Configuration

There are several ways to open the project configuration interface: double-click build.xml in the project view or click Project->Configuration in CoBuilder menubar.

 

Adding Preprocessor Symbols

For CoBuilder projects, you can define preprocessor symbols for the parser. This makes the parser understand the contents of the C/C++ source code so that you can more effectively use the search and code completion features.

Add symbols in "Defined symbols" section:

  • Click Add to define new symbol
  • Click Remove to remove selected element

 

Adding Include Paths

For CoBuilder projects, you can add include paths for the parser. This makes the parser find the header included in the C source code so that you can more effectively use the search and code completion features.

Add symbols in "Include paths" section:

  • Click Add to add new path
  • Click Remove to remove selected element

 

Selecting a Project Type

When you create a new project, you can specify the output file type. This output file type will determine the toolchain and data, and tabs that the Cobuilder uses. In CooCox Cobuilder, you can choose from the following output file types:

  • Executable -The target file is a binary file (*.bin) that can be downloaded into the chip and run, it is selected by default.
  • Library - The target file is a library file (libxx.a). It is a collection of object files which you can link into another application. Cobuilder combines object files  (i.e. *.o) into an archive (*.a) that is directly  linked  into  an executable.

Select output file type in "Custom Options" section.

  • Select Executable to generate binary file
  • Select Library to generate library file

 

Setting Optimization Options

Setting optimization options makes the compiler attempt to improve the performance and/or code size at the expense of compilation time and possibly the ability to debug the program.

  • Optimization - Set optimization levels, about more optimization levels, please refer to gcc documentation .
  • Discard unused sections - Enable garbage collection of unused input sections. The section containing the entry symbol and all sections containing symbols undefined on the command-line will be kept, as will sections containing symbols referenced by dynamic objects. Check this option will reduce code size.

Set optimization options in "Custom Options" section.

  • Select Optimization to set optimization level
  • Check Discard unused sections to discard unused input sections

 

Adding Library

Library is a set of routines, external functions and variables which are resolved in a caller at compile-time and copied into a target application by a compiler, linker, or binder, producing an object file and a stand-alone executable. CoBuiler library is a gcc library.

Add libraries file in "Linked Libraries" section.

  • Click Add to add new library
  • Click Remove to remove selected library

 

Customizing Linker Script

Customize the linker script file for current project in "Locate Link File" section.

  • Click Locate to locate an existing linker script file.
  • Click Edit to edit current linker script file in CoBuilder editor.

 

Customizing Compiler and Linker Options

You can add, delete and modify the Compiler and Linker options.

Customize compiler and linker options in "Command" section.

  • Customize compile options in Compiler line
  • Customize link options in Linker line
© 2010 CooCox - Terms of Use         Business Model         Market             About us