home

my Ada web page
Last updated May 10, 2012.
By Nasser M. Abbasi

Contents

1 Ada links

Ada links and my original Ada web page can be found here

2 how to make simple Ada program

  1. if gnat is not installed, install it (on linux) using something similar to
           sudo apt-get install gnat-4.6
    

  2. write the following code in file called hello_world.adb
         with ada.text_io; use ada.text_io;
         procedure hello_world is
         begin
            put_line("hello world");
         end hello_world;
    

  3. compile using
         >gnatmake hello_world.adb
         gcc-4.6 -c hello_world.adb
         gnatbind -x hello_world.ali
         gnatlink hello_world.ali
    
  4. run it
          >./hello_world
          hello world
    



me 2012-05-16