build - Build active project in CCS IDE

Syntax

build(cc,timeout)
build(cc)
build(cc,'all',timeout)
build(cc,'all')

[result,numwarns]=build(...)

Description

build(cc,timeout)incrementally rebuilds your active project in CCS IDE. In an incremental build:

This incremental build is identical to the incremental build in CCS IDE, available from the CCS IDE toolbar.

After building the files, CCS IDE relinks the files to create the program file with the .out extension. To determine whether to relink the output file, CCS IDE compares the time stamp on the output file to the time stamp on each object file. It relinks the output when an object file time stamp is later than the output file time stamp.

To reduce the compile and build time, CCS IDE keeps a build information file for each project. CCS IDE uses this file to determine which file needs to be rebuilt or relinked during the incremental build. After each build, CCS IDE updates the build information file.

To limit the time that build spends performing the build, the optional argument timeout stops the process after timeout seconds. timeout defines the number of seconds allowed to complete the required compile, build, and link operation. If the build process exceeds the timeout period, build returns an error in MATLAB software. Generally, build causes the processor to initiate a restart even when the period specified by timeout passes. Exceeding the allotted time for the operation usually indicates that confirmation that the build was finished was not received before the timeout period passed. If you omit the timeout option in the syntax, build defaults to the global timeout defined in cc.

build(cc) is the same as build(cc,timeout) except that when you omit the timeout option, build defaults to the timeout for build, 1000 s. This timeout value overrides the default timeout setting for cc.

build(cc,'all',timeout) completely rebuilds all of the files in the active project. This full build is identical to selecting Project > Rebuild All from the CCS menu bar. After rebuilding all files in the project, build performs the link operation to create a new program file.

To limit the time that build spends performing the build, optional argument timeout stops the process after timeout seconds. timeout defines the number of seconds allowed to complete the required compile, build, and link operation.

If the build process exceeds the timeout period, build returns an error in MATLAB software. Generally, build causes the processor to initiate a restart even when the period specified by timeout passes. Exceeding the allotted time for the operation usually indicates that confirmation that the build was finished was not received before the timeout period passed. If you omit the timeout option in the syntax, build defaults to the global timeout defined in cc.

build(cc,'all') is the same as build(cc,'all',timeout) except that when you omit the timeout option, build defaults to the timeout set for build only, 1000 s.

[result,numwarns]=build(...) returns two output values that report the results of the build operation. For a successful build, the output arguments are the following:

When the build is not successful, build displays an error and a message that contains the build string in the MATLAB software Command Window.

Examples

To demonstrate building a project from MATLAB software, use CCS IDE to load a project from the Texas Instruments software tutorials. For this example, open the project file volume.pjt from the Tutorial folder where you installed CCS IDE. (You can open any project you have for this example.)

Now use build to build the project:

cc=ticcs

TICCS Object:
  API version      : 1.2
  Processor type   : TMS320C64127
  Processor name   : CPU_1
  Running?         : No
  Board number     : 0
  Processor number : 0
  Default timeout  : 10.00 secs

  RTDX channels    : 0

build(cc,'all',20)

You just completed a full build of the project in CCS IDE. On the Build pane in CCS IDE, you see the record of the build process and the results. Now, make a change to a file in the project in CCS IDE and save the file. Then rebuild the project with an incremental build.

build(cc,20)

When you look at the Build pane in CCS IDE, the log shows that the build only occurred on the file or files that you changed and saved.

See Also

activate, isrunning, open

  


 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS
 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS