Introduction to Sun WorkShop | ![]() ![]() ![]() ![]() ![]() |
About Sun WorkShop
The Sun WorkShop programming environment simplifies complex development tasks by providing an integrated development environment for building, editing, debugging, source browsing, and tuning your C++, C, and Fortran 77/95 software development projects.
The Sun WorkShop integrated programming environment includes:
- Integrated text editors
- Compilers
- An integrated debugging service
- A source code browser
- Performance, source code management, and GUI-building tools
Integrated Text Editors
Text editors are the center of the Sun WorkShop integrated development tool set that includes building, debugging, and browsing. The Sun WorkShop programming environment makes it possible to evaluate expressions, set breakpoints, and step through functions from your text editor.
This release of Sun WorkShop provides the following integrated editors:
- NEdit, version 5.0.2. A graphical user interface-style plain-text editor for X/Motif systems. NEdit is the editor that Sun WorkShop uses by default (to change your text editor, see Choosing a Text Editor and Text Editor Options). For more information about NEdit, see "NEdit Editor Window" in the Text Editing section of the online help and the NEdit web page at
http://www.nedit.org
.- XEmacs, version 20.4 or compatible versions. A customizable text editor and application development system. For more information, see "XEmacs Editor Window"in the Text Editing section of the online help and the XEmacs web page at
http://www.xemacs.org
.- GNU Emacs, version 19.28 or compatible versions. An extensible, customizable, self-documenting real-time display editor. For more information, see "GNU Emacs Editor Window" in the Text Editing section of the online help and the GNU web page at
http://www.gnu.org
.- Vi. A screen-based editor on UNIX systems. For more information, see "Vi Editor Window" in the Text Editing section of the online help.
- Vim, version 5.3 with graphical user interface option. An improved version of the vi standard text editor on UNIX systems. For more information, see "Vim Editor Window"in the Text Editor section of the online help or the Vim web page at
http://www.vim.org
.
Note Not all text editors are available in all locales.
For more information about the Sun WorkShop editors, see:
- Choosing a Text Editor and Text Editor Options
- The Text Editing section in the online help
Compilers
This release of Sun WorkShop supports the following compilers:
- Sun WorkShopTM Compilers C++ (Available with Sun Visual WorkShopTM C++)
- The C++ compiler (
CC
) supports the ISO standard for C++, ISO IS 14882:1998, Programming Language C++. The following requirements in the standard are not supported in this release: Templates as template parameters and universal character names. For more information about the C++ compiler, see the C++ User's Guide.- Sun WorkShopTM Compilers C
- This compiler is fully compliant with the ANSI C language and environment standard, and it also supports traditional K&R C. The C optimizer provides significant performance increases over nonoptimized code. The code optimizer removes redundancies, efficiently allocates registers, and schedules instructions. Also featured is an incremental linker to reduce link time during the debugging phase. For more information about the C compiler, see the C User's Guide.
- Sun WorkShopTM Compilers Fortran (Available with Sun Performance WorkShopTM Fortran)
- Fortran 95
- This release is a complete implementation of the Fortran 95 ISO/IEC 1539:1997 standard. This standard has added many features, such as an improved ability to express mathematical formulas more directly in the programming language. In addition, the Fortran 95 compiler works with the rest of Sun WorkShop to automatically parallelize your code. For more information about the Fortran 95 compiler, see the Fortran User's Guide or Fortran Programming Guide.
- Fortran 77
- This compiler is a complete implementation of the Fortran 77 ANSI X3.9-1978, ISO 1539-1980 standards. It has an improved ability to express mathematical formulas more directly in the programming language, as well as extensions that provide compatibility with VAX VMS Fortran and Cray Fortran. For more information about the Fortran 77 compiler, see the Fortran User's Guide or Fortran Programming Guide.
Integrated Debugging Service
Sun WorkShop uses a window-based source code debugging service that provides the ability to run a program in a controlled fashion and to inspect the state of a stopped program. You can perform most debugging operations from the Debugging window and the windows accessed from it. You can also perform basic debugging operations from a text editor window containing the source code, which opens automatically when you load a program for debugging. You have complete control of the dynamic execution of a program, including the collection of performance data. A line-oriented, source-level debugger called
dbx
is also included with Sun WorkShop.
- Chapter 4
- The Using the Debugging Window section of the online help
- The Using
dbx
Commands section of the online helpSource Code Browser
You can browse source code written in C, C++, and Fortran 77/95 by issuing a query in the Browsing window in either pattern search mode or source browsing mode. Pattern search mode allows you to search your source code for any text string, including text embedded within comments. Source browsing mode allows you to find all occurrences of any program-defined symbol in your code by searching in a database that is generated when Sun WorkShop compiles your source files with a source browsing option. (One of the selections you can make when you are creating or editing a project is for Sun WorkShop to generate the database when it compiles your code.) You then view the occurrences or matches to your query with their surrounding source code in the Browsing window match pane.
You can also graph the function and subroutine relationships in your program, and if your source code is written in C++, you can browse and graph the classes defined in your program.
- Chapter 5
- The Browsing Source Code section of the online help
Performance, Source Code Management, and GUI-Building Tools
By default, the Sun WorkShop main window provides access through the Tools menu to the Sampling Analyzer, which helps you analyze your program performance, and Merging, which is part of Sun WorkShop TeamWare source code management tools. If you have Sun Performance WorkShop Fortran, the Tools menu also provides access to the multithreaded tool LoopTool. If you have Sun Visual WorkShop C++, you also have access to Visual, the GUI-building tool.
Multithreaded Development Tools
Sun WorkShop includes tools for developing multithreaded applications. Sun WorkShop Debugging supports dynamic analysis and control of multithreaded programs. LockLint analyzes source code for potential synchronization errors, such as deadlock and data race conditions. LoopTool displays a graph of loop runtimes and shows which loops were parallelized. Together they provide support for multithreaded program development.
- Chapter 6
- Analyzing Program Performance With Sun WorkShop 6
- The Analyzing Program Performance and Analyzing the Loops in Your Program sections of the online help
- "Multithreaded Program Debugging" in the Using the Debugging Window section of the online help
Sun WorkShop TeamWare
Sun WorkShop TeamWare source code management tools allow you to manage source code files through a set of GUIs or from the command line. Sun WorkShop TeamWare allows a team to work in parallel at different sites to coordinate, integrate, and build a product. The services include:
- Configuring. This manages and integrates source code configurations and releases.
- Versioning. This creates and tracks file version histories.
- Freezepointing. This baselines a software configuration or release for later retrieval.
- Building. This executes build jobs on multiple Solaris hosts.
- Merging. This merges source files and coordinates source changes.
- See Chapter 7 in this book.
- See the Sun WorkShop TeamWare User's Guide.
- Choose Help from the TeamWare Configuring window menu bar.
Sun WorkShop Visual
(Available with Sun Visual WorkShop C++)
Visual helps you design graphical user interfaces (GUIs), generate portable object-oriented code, and develop Motif, Java, or Microsoft Foundation Class GUIs. Visual automatically generates the code when the design is complete.
For more information, see the Sun WorkShop Visual User's Guide.
Sun Microsystems, Inc. Copyright information. All rights reserved. Feedback |
Library | Contents | Previous | Next | Index |