g***@gmail.com
2014-08-23 13:54:01 UTC
i have downloaded gnat gpl edition from libre.adacore.com
i have installed gnat. it is located /usr/local/gnat/
i have created a file called hello.adb, found in ADA95 textbook,
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
Put_Line ("Hello World");
end Hello;
i have cd into /usr/local/gnat/bin
typed: gnat
and got this
GNAT GPL 2014 (20140331)
Copyright 1996-2014, Free Software Foundation, Inc.
List of available commands
gnat bind gnatbind
gnat chop gnatchop
gnat clean gnatclean
gnat compile gnatmake -f -u -c
gnat check gnatcheck
gnat elim gnatelim
gnat find gnatfind
gnat krunch gnatkr
gnat link gnatlink
gnat list gnatls
gnat make gnatmake
gnat metric gnatmetric
gnat name gnatname
gnat preprocess gnatprep
gnat pretty gnatpp
gnat stack gnatstack
gnat stub gnatstub
gnat test gnattest
gnat xref gnatxref
All commands except chop, krunch and preprocess accept project file switches -vPx, -Pprj and -Xnam=val
i then cd back into my home dir : cd ~
where the hello.adb file is located
i entered: gnat compile hello.adb
i got back:
gcc -c hello.adb
in the directory i see:
hello.adb
hello.ali
hello.c.save
hello.o
what do i need to do to run the program ... and compile if i have done something wrong?
i have installed gnat. it is located /usr/local/gnat/
i have created a file called hello.adb, found in ADA95 textbook,
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
Put_Line ("Hello World");
end Hello;
i have cd into /usr/local/gnat/bin
typed: gnat
and got this
GNAT GPL 2014 (20140331)
Copyright 1996-2014, Free Software Foundation, Inc.
List of available commands
gnat bind gnatbind
gnat chop gnatchop
gnat clean gnatclean
gnat compile gnatmake -f -u -c
gnat check gnatcheck
gnat elim gnatelim
gnat find gnatfind
gnat krunch gnatkr
gnat link gnatlink
gnat list gnatls
gnat make gnatmake
gnat metric gnatmetric
gnat name gnatname
gnat preprocess gnatprep
gnat pretty gnatpp
gnat stack gnatstack
gnat stub gnatstub
gnat test gnattest
gnat xref gnatxref
All commands except chop, krunch and preprocess accept project file switches -vPx, -Pprj and -Xnam=val
i then cd back into my home dir : cd ~
where the hello.adb file is located
i entered: gnat compile hello.adb
i got back:
gcc -c hello.adb
in the directory i see:
hello.adb
hello.ali
hello.c.save
hello.o
what do i need to do to run the program ... and compile if i have done something wrong?