Skip to content

Latest commit

 

History

History
77 lines (51 loc) · 3.45 KB

QUICKREF.md

File metadata and controls

77 lines (51 loc) · 3.45 KB

Ada Quick Reference

Ada project This document gathers Ada hints and tips.

Language Features

  • Ada is a case-insensitive programming language.
  • Ada type system uses name equivalence between types.
  • Ada 2012 and newer supports contract-based programming.

GNAT Commands

gnatedoc

gnatdoc generates an HTML report in the gnatdoc directory of the object directory of the main project.

gnatelim

gnatelim tracks unused subprograms in an Ada program.

GPR Commands

GPRbuild

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.

GRPclean

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

GPRinstall ...

GRPls

GPRls ..

GPRname

GPRname ..


mics/December 2024