21.1 Running gnatstub
gnatstub has the command-line interface of the form
$ gnatstub [switches] filename [directory]
- is the name of the source file that contains a library unit declaration
for which a body must be created. The file name may contain the path
The file name does not have to follow the GNAT file name conventions. If the
does not follow GNAT file naming conventions, the name of the body file must
explicitly as the value of the -obody-name option.
If the file name follows the GNAT file naming
conventions and the name of the body file is not provided,
creates the name
of the body file from the argument file name by replacing the .ads
with the .adb suffix.
- indicates the directory in which the body stub is to be placed (the default
- is an optional sequence of switches as described in the next section