Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
From: re@palissandre.enpc.fr (Rolf EBERT)
Subject: GNAT (Ada9X) for Linux
Date: 6 Aug 1993 12:43:33 -0400	[thread overview]
Message-ID: <23u1nl$9qs@theory.TC.Cornell.EDU> (raw)

I have uploaded to nic, tsx-11, and sunsite my port of the GNU Ada
Translator (GNAT). It still is in the incoming directories until the
SysAdmins move it anywhere else. You find attached my README.linux.

Here comes the Gnu Ada compiler for Linux in its very first early alpha
version (in fact it's the 2nd :-). The GNAT project will implement the
Ada9X language which has full support of Object Oriented Programming
(using a slightly different approach than C++), has already working
Generics (aka templates), exception handling, and a full tasking support
within the language itself (the runtime support for Linux is not ready
yet; will there ever be kernel supported threads ?) 

There still are a lot of problems in the current version, and the
authors don't care about bug reports at the moment. They know, what
still is left to do. Nevertheless, one can already write a compiler with
GNAT, since it has boostraped itself. (takes about one hour on my Linux
PC 33MHz-8MB RAM). It is interesting to see the GNAT approach of the Ada
library (which IMHO could be useful and easy to implement for the
C/C++/Obj-C languages as well)



My package essentially contains three files:

./bin/gcc
./bin/gnatbind
./lib/gcc-lib/i386-linux/2.4.5/gnat1

(you have to unpack it being in /usr)

The first one is a patched driver program for gcc (2.4.5) in order to
choose the GNAT compiler when it encounters source files ending in
".ada", ".ads", and ".adb". The second is a temporarily needed binder
program until it gets included into gcc. The compiler itself is 'gnat1'.
All C files have been compiled with gcc 2.4.3, the Ada files with gnat1
itself of course (the Ada front-end is written in Ada).



Documentation can be found in the directory

/usr/src/gnat/doc


A simple example is in 

/usr/src/gnat/example



BUGS

There is one known bug in my port of the Linux version. If you use
exception handling, you must put the following line in a file, compile
it, and add the resulting .o when you do the linkstep.

   setjmp(tmp){ __setjmp(tmp); }



If you have problems using gnat on Linux please tell me (ebert@enpc.fr).

If you have general questions concerning Ada, please read comp.lang.ada
and the useful FAQ. A lot of Ada information can be found at
wuarchive.wustl.edu:/languages/ada. 

If you are interested in the gnat development, you can join the mail
list at gnat-request@cs.nyu.edu.


Have fun with Ada

	Rolf

-----------------------------------------------------------------------------
Rolf Ebert     Groupe Informatique et Systemes Energetiques     GISE EMP-ENPC
Tel: +33 1 43044098 app 3475 FAX: +33 1 43046364            La Courtine Cedex
Internet: ebert@enpc.fr                                F-93167 Noisy le Grand
-----------------------------------------------------------------------------


-- 
Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu


                 reply	other threads:[~1993-08-06 16:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox