Maximizing Your Results with SoftBench

An Example SoftBench Session

7.When all syntax errors are fixed, use SoftBench CodeAdvisor (available with C++ SoftBench only, although rules exist for both C and C++) to find hidden coding problems not found by the compiler. Select the project or files of interest, then select the Check Code button.

8.To validate how well your application works, select the desired target, then choose either "Target: Debug…" or "Target: Run…". If you use "Target: Debug…" and find problems, you can start your editor from SoftBench Debugger, edit the source code, then choose "File: Build" to recompile the application and restart the debugging process.

9.To better understand your code, select the "Static Analyzer" icon in the toolbar. Alternatively, you can access SoftBench Static Analyzer from your configured SoftBench editor or SoftBench Debugger by selecting a program identifier, then choosing a command from the "Static" menu.

10.Cycle through editing, building, and debugging as many times as necessary to develop a correct executable.

If you are using the external build model where you write and maintain the build instructions, replace step 3 above with:

3. Define the targets in your project and their dependencies

a.Edit the Makefile or build script. With external build, you can save the build instructions for your Makefile targets when your build command supports entering a target name as part of the command:

b.Choose "Target: New…" to display the "External Build Command" dialog box.

c.Specify the build instructions for the external build target. For example, enter make in the “Command” input box, and enter the target name in the “Target” input box.

d.Select Save as Target to save the instructions as a target node that you can select in the project browser and target graph.

Chapter 1

39