Ada Quick Reference ↩
This document gathers Ada hints and tips. |
- Ada is a case-insensitive programming language.
- Ada type system uses name equivalence between types.
- Ada 2012 and newer supports contract-based programming.
gnatdoc
generates an HTML report in the gnatdoc directory of the object directory of the main project.
gnatelim
tracks unused subprograms in an Ada program.
GPR Commands ▴
GPRbuild
is a multi-language build tool that manages the compilation, binding and linking phases.
GPRbuild requires a project file to be specified through the -P
switch or to be looked for in the current directory.
GPRclean
removes the files created by GPRbuild
.
> gprclean using project file greetings.gpr <project_dir>\target\obj\greetings.* <project_dir>\target\obj\gmain.* <project_dir>\target\Greetings.exe <project_dir>\target\obj\b__gmain.*
Command GPRbuild -c
deletes only compiler-generated files (executables and libraries are untouched).
> gprclean -c using project file greetings.gpr <project_dir>\target\obj\greetings.* <project_dir>\target\obj\gmain.* <project_dir>\target\obj\b__gmain.*
GPRinstall
...
GPRls
..
GPRname
..