![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Compile > CodeThe Compile > Code command generates code for the current selection. If coding is successful, the units advance to the coded compilation state.
The Code dialog box appears when you select the command from a viewer window. If you select the command from an editor window, it analyzes the current unit using the Code dialog box defaults. To force the dialog box to appear from an editor window, press Control —— Compile > Code.
A list of the switches (including the coding switches) can be displayed using the Control > Show > Switches (Apex/Summit) command. For a listing of just the coding switches, use the following command in an Apex shell:
%show_switches -context | grep -i code
Code Dialog Box Fields:
Code Field
Specify the units to compile in the Code list field. Use the Add input field to add unit names. Use the Remove or Clear buttons to remove entries from the Code list. If you name a view or directory, the command attempts to generate code for all nested program units. If you specify a configuration, the command attempts to generate code for all units in each view listed in the configuration.
Radio Buttons
The two radio buttons in the Code dialog box specify the compilation closure to be analyzed.
- Existing units in linkage closure.
Generates code for all existing units needed to link the unit.
- Units needed to code.
Generates code for all units needed to compile the unit (the default).
Options Field
Use the Options field to specify any command-line compiler switches.
Stop Check Box
- The Stop when the first error is found check box stops unit compilation at the first unit containing an error. If this check box is not selected (the default), the command compiles all units in the specified closure and returns errors in an Output window.
Code in Parallel Check Box (C++ only)
- If the Code in parallel if possible check box is selected, and multiple views are given, compiles can be run in parallel on several machines. The Tools > Net Command Info command (available from the Jobs window) provides a textual summary of what a parallel command is doing.
Build derived objects.
- Generates compilation artifacts as ClearCase derived objects (DOs) that can be "winked in" to new ClearCase views to eliminate the need for an initial build. This option invokes the do_clearcase_audit command to do the audited code operation on the object to be coded and its import closure.
When build derived objects is selected, another radio button, Do not clean closure is displayed. This option is deselected by default, thus the closure will be cleaned.
Command Line Interface > code (ada)
Command Line Interface > code (c++)
Additional Topics
Rational Software Corporation http://www.rational.com support@rational.com techpubs@rational.com Copyright © 1993-2001, Rational Software Corporation. All rights reserved. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |