Introduction to Sun WorkShop |
Preface
Introduction to Sun WorkShop acquaints you with the basic program development features of the Sun WorkShopTM integrated programming environment. This book is intended for application developers who have a working knowledge of Fortran, C, or C++ and Solaris/UNIX® and who want to understand the main development features of Sun WorkShop.
To get updated information about Sun WorkShop through the Web, use the Web Updates Dialog Box. To open the Web Updates dialog box, choose Help Web Updates in any Sun WorkShop window.
Multiplatform Release
This Sun WorkShop release supports versions 2.6, 7, and 8 of the SolarisTM SPARCTM Platform Edition and Solaris Intel Platform Edition Operating Environments.
Note The term "x86" refers to the Intel 8086 family of microprocessor chips, including the Pentium, Pentium Pro, and Pentium II processors and compatible microprocessor chips made by AMD and Cyrix. In this document, the term "x86" refers to the overall platform architecture, whereas "Intel Platform Edition" appears in the product name.
Access to Sun WorkShop Development Tools
Because Sun WorkShop product components and man pages do not install into the standard
/usr/bin/
and/usr/share/man
directories, you must change yourPATH
andMANPATH
environment variables to enable access to Sun WorkShop compilers and tools.To determine if you need to set your
PATH
environment variable:1. Display the current value of thePATH
variable by typing:
%
echo $PATH
2. Review the output for a string of paths containing/opt/SUNWspro/bin/
.
- If you find the paths, your
PATH
variable is already set to access Sun WorkShop development tools. If you do not find the paths, set yourPATH
environment variable by following the instructions in this section.To determine if you need to set your
MANPATH
environment variable:1. Request theworkshop
man page by typing:
%
man workshop
2. Review the output, if any.
- If the
workshop
(1) man page cannot be found or if the man page displayed is not for the current version of the software installed, follow the instructions in this section for setting yourMANPATH
environment variable.
Note The information in this section assumes that your Sun WorkShop 6 products were installed in the/opt
directory. Contact your system administrator if your Sun WorkShop software is not installed in/opt
.
The
PATH
andMANPATH
variables should be set in your home.cshrc
file if you are using the C shell or in your home.profile
file if you are using the Bourne or Korn shells:
- To use Sun WorkShop commands, add the following to your
PATH
variable:
/opt/SUNWspro/bin
- To access Sun WorkShop man pages with the
man
command, add the following to yourMANPATH
variable:
/opt/SUNWspro/man
For more information about the
PATH
variable, see thecsh
(1),sh
(1), andksh
(1) man pages. For more information about theMANPATH
variable, see theman
(1) man page. For more information about setting yourPATH
andMANPATH
variables to access this release, see the Sun WorkShop 6 Installation Guide or your system administrator.How This Book Is Organized
Introduction to Sun WorkShop contains the following chapters and appendixes:
Chapter 1, "About Sun WorkShop," is an overview of the Sun WorkShop programming environment.
Chapter 2, "Getting Started," describes how to begin working in the Sun WorkShop integrated programming environment.
Chapter 3, "Building Programs," describes building an application with Sun WorkShop and how to identify build errors.
Chapter 4, "Debugging a Program," highlights the debugging service offered in Sun WorkShop.
Chapter 5, "Browsing Source Code," describes source code browsing, call graphing, class graphing, and class browsing.
Chapter 6, "Analyzing Program Performance," gives an overview of the Sampling Collector and Sampling Analyzer.
Chapter 7, "Merging Source Files," describes how to compare different versions of a source file and merge the changes.
Appendix A, "Sun WorkShop and Text Editor Resources," describes some of the resource settings in Sun WorkShop that you can edit.
Appendix B, "The make Utility and Makefiles," describes options that you can set for the
make
utility.Appendix C, "The dmake Utility," describes how the distributed make (
dmake
) utility distributes builds over several hosts to build programs concurrently over a number of workstations or multiple CPUs.Appendix D, "Source Browsing With sbquery, sb_init, and sbtags," describes the use of the command line to complete browsing tasks that are also available within the Sun WorkShop integrated programming environment.
The Glossary defines the terms used in this book.
Typographic Conventions
TABLE P-1 shows the typographic conventions that are used in Sun WorkShop documentation.
Shell Prompts
TABLE P-2 shows the default system prompt and superuser prompt for the C shell, Bourne shell, and Korn shell.
TABLE P-2 Shell Prompts C shell %
Bourne shell and Korn shell $
C shell, Bourne shell, and Korn shell superuser #
Related Documentation
You can access documentation related to the subject matter of this book in the following ways:
- Through the Internet at the
docs.sun.com
sm Web site. You can search for a specific book title or you can browse by subject, document collection, or product athttp://docs.sun.com
.- Through the installed Sun WorkShop products on your local system or network. Sun WorkShop 6 HTML documents (manuals, online help, man pages, component readme files, and release notes) are available with your installed Sun WorkShop 6 products. To access the HTML documentation, do one of the following:
- In any Sun WorkShop or Sun WorkShopTM TeamWare window, choose Help About Documentation.
- In your NetscapeTM Communicator 4.0 or compatible Netscape version browser, open the following file:
- (If your Sun WorkShop software is not installed in the
/opt
directory, ask your system administrator for the equivalent path on your system.) Your browser displays an index of Sun WorkShop 6 HTML documents. To open a document in the index, click the document's title.TABLE P-3 lists related Sun WorkShop 6 manuals by document collection.
TABLE P-4 describes related Solaris documentation available through the
docs.sun.com
Web site.
Sun Microsystems, Inc. Copyright information. All rights reserved. Feedback |
Library | Contents | Previous | Next | Index |