Using SoftBench Editors
Calling Other SoftBench Tools from the EditorsCalling Other SoftBench Tools from the Editors
One of the most useful benefits of having the vi and XEmacs editors encapsulated and integrated into SoftBench is that you can call other tools from within the editors, and you can call the editors from other tools.
The default editing mode is "C" code, and changes based on the filename's suffix. The suffixes .C, .cxx, .cpp, .Cxx, .cc and .H cause the editors to switch to C++ mode.
Compiling a Program FileOnce you finish editing and saving the changes to a program file (save the file by choosing "File: Save"), you can compile the file while in an editor by choosing "File: Compile File".
See “Compiling Instead of Building” on page 73 for information comparing compiling to building.
Building a ProjectOnce you finish editing and saving the changes to your program file, (save the file by choosing "File: Save"), you can build the current project by choosing "File: Build Project".
See “Compiling Instead of Building” on page 73 for information comparing compiling to building.
Accessing SoftBench Static Analyzer from the EditorYou can initiate static analysis directly from the editor. For example, you can generate a list of all calls to a particular variable by selecting a token (dragging with the left mouse button or
130 | Chapter 4 |