Ada

From ArchWiki

Ada is a general purpose, compiled programming language. It features strong static typing, packages, exceptions, generics, tasking, object-orientation and contracts.

Installation

Install the gcc-ada package. This will install the GNAT compiler, which is an Ada front-end for the GNU Compiler Collection (GCC).

Additional packages:

Signed, pre-built packages are available from the unofficial Ada repository.

Test your installation

Check that GNAT is installed correctly by building a simple program, as follows:

hello.adb
with Ada.Text_IO;

procedure Hello is
begin
   Ada.Text_IO.Put_Line ("Hello, Arch!");
end Hello;

You can compile it with gnatmake:

$ gnatmake hello
gcc -c hello.adb
gnatbind -x hello.ali
gnatlink hello.ali

Then run it:

$ ./hello
Hello, Arch!

See also

Language

Tools

Library Docs