HOME

The Ada Project (using gnat)

Introduction

Add something here ...

First program - Greetings — Simple build notes

Add something here ... like: $ gnat make hello.adb

Then execute the created program: $ ./hello

-- 
--  $Id: hello.adb,v 0.3 2024/08/10 18:54:19 kc4zvw Exp kc4zvw $
--

-- (***  Nothing new here but it still had to be done ***)

with Ada.Text_IO;
use Ada.Text_IO;

procedure Hello is
begin
	Put_Line ("");
	Put_Line ("Hello World from another legacy language!");
	Put_Line ("");
end Hello; 

-- ***** End of File *****
  

Output:


Hello World from another legacy language!

  

Example #2 — multi-file version of greetings

Setting up a project that uses multi files source code ...

Github repository: link

Output:

Hello World!
Goodbye World!
  

Example #3 — (coming soon)

Add something here ...

Github repository: link

Output:

    (blank)
  

Example #4 — The 'heapsort' Algorithm

Add something here ...

    (blank)
  

Miscellaneous

Online Resource to get started with GNU ada: installation and tutorials ...

  1. AdaCore
  2. The GNAT Book
  3. Another Link ...





Revised: Saturday, August 10, 2024 at 15:36:38 PM (EDT)