Creating a Tags Database | Pattern Search and Source Browsing |
Browsing Multiple Directories | |
Starting Source Browsing |
When you compile your source files with a source browser option, the Sun WorkShopTM programming environment creates a database containing information about the files. Once the compiler-generated browser database is created, you can use all the browsing features of Source Browsing Mode in the Browsing Window. The Source Browser responds to queries by searching through this database.
To ask Sun WorkShop to generate a compiler-generated browser database when it builds your project:
To generate a compiler-generated browser database by changing your makefile and then building your source files:
Language
|
Option
|
C++, Fortran 77, Fortran 95 | -xsb or -sb |
ANSI C | -xsb |
Assembler | -b |
.DONE: | query |
query: | -sbquery nonesuch |
The generated database is written to the SunWS_cache directory (or the directory set by the SUNWS_CACHE_NAME environment variable) in the build directory.
Note - The information included in the database depends on the particular compiler you are using. In general, only identifiers and strings are included; reserved words are not included.