Introduction |
The easiest way to analyze your source is to use Understand for Ada's GUI to specify what source files to parse. The GUI then parses the code and creates an Understand for Ada database that it then browses. This repository can be refreshed incrementally from within the GUI, or updated using command line tools.
To create a new project select File->New Project , you are then prompted to specify a database name (by convention Understand for Ada databases end with .uda):
You are then asked to choose the kind of source code that is in your project. Understand for Ada supports Ada 83, or Ada 95, or a source code containing both. So that it knows which standard library to use, set this when a new project is created. You will not be able to change this setting once, the project is created:
The Project Configuration dialog then pops up. Use it to add entire directories of source code with one click of the button. You can also turn parsing on/off for specific files or entire directories.
Choosing the Options tab reveals analysis options including the option to associate comments.
Settings on the Display tab let you control how entity names are displayed:
When the project has been configured as desired, choose Save. Whenever the files in the project configuration are modified, including at the time of project creation, a dialog alerting you to the change in configuration appears.
Choose "Yes" and Understand for Ada then begins parsing the code. A log of the parsing results is written to the Command Results window, which you can then save to a file or close.
No parse order is needed, Understand for Ada figures out the parsing order automatically. It also detects if needed source files are missing and reports this. You can optionally stop at errors, or continue, ignoring the errors.
After parsing, Understand for Ada now contains lots of data to browse...
Scientific Toolworks, Inc. http://www.scitools.com Voice: (802) 763-2995 Fax: (802) 763-3066 support@scitools.com sales@scitools.com |