Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
From: re@palissandre.enpc.fr (Rolf EBERT)
Subject: GNU Ada on Linux
Date: 10 Oct 1993 15:41:40 GMT	[thread overview]
Message-ID: <299afk$pdt@samba.oit.unc.edu> (raw)

For all of you who are looking for a Pascal or Modula-2 compiler on
Linux; and of course for all who already know Ada. 

Here comes the Gnu Ada compiler for Linux in its newly updated form as
of October 1st (V1.53). The compiler still is under heavy development. A
more or less final version is announced for the end of the year.

The binary distribution can be found at the following places:

sunsite.unc.edu:/pub/Linux/development/ada/gnat-931001.tar.gz
nic.funet.fi:/pub/OS/Linux/util/languages/gnat-931001.tar.gz
tsx-11.mit.edu: ??? stil in the incoming directory

The GNAT project will implement the full Ada9X language which has full
support of Object Oriented Programming (using a slightly different
approach than C++, see the paper intro-9x.txt), has already working
Generics (aka templates), exception handling, and a full tasking support
within the language itself (the runtime support is not yet ready)

There still are some problems in the current version (and in my Linux
port). If you find errors in the already implemented parts (see below),
please write to gnat-report@cs.nyu.edu. If you think it is Linux
related, please tell me (ebert@enpc.fr). I have tested the compiler on
the examples and of course on itself. The executable compiler that you
find in this distribution has compiled itself.



This package contains essentially three files:

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

and some stuff in
 ./usr/src/gnat

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". (Don't worry, it still works for C/C++/Obj-C)


Documentation can be found in the directory

./usr/bin/src/gnat/doc


Perhaps it is a good idea to get the latest Ada9X reference manual from:

ajpo.sei.cmu.edu:/public/ada9x/rm9x/v4.0

It might look a bit thick, but there are a lot of instructive examples
and you better understand the list of supported and unsupported features
of the current release.


Features supported
------------------

The parser is a full Ada9X parser, and includes the latest decisions of the
mapping team, including the keyowrd -abstract-. Semantic analysis and code 
generation are in constant evolution, and several important Ada9X features
have been implemented in this release. In particular, tagged types, type
extensions, and dynamic dispatching (but no private extensions yet) as well
as the full hierarchical library mechanism. 
 

Chapter 2
   pragma List, Page

Chapter 3
   Object declarations
   Number declarations

   Subtype declarations

   Type declarations
     Derived types and classes
     Enumeration types
        attributes (first, last, range, pos, val, image)
     Character types
        attributes (first, last, range, pos, val, image)
     Boolean types
     Integer types
        attributes (first, last, range, pos, val)
     Modular types.
     Floating point (only operations on the predefined types)
     Array types
       attributes first, last, range, length
     Record types
       Discriminants and Discriminant constraints
       Variant Parts
     Tagged Types and extensions (without discriminant)
     Dispatching
     Access types
     Access to subprograms
     Incomplete types

Chapter 4
     Indexed Components
     Slices
     Selected Components
     Aggregates (record and array)
     Expressions (all forms)
        static concatenation
     type conversions  (except array conversions)

Chaper 5
     statements (all forms)

Chapter 6
     subprogram declaration and bodies
     subprogram calls 
       named and positional associations
       default parameters
     overloading of subprograms and operators
     functions returning unconstrained arrays
  
Chapter 7
     package declaration and bodies
     private types 
 
Chapter 8
    use clauses
    object, subprogram and package renaming 

Chapter 10
    library units
    with clauses
    stubs and subunits
    pragma elaborate
    child units

Chapter 11
    exceptions
    (restriction -- all exceptions that are raised need handlers somewhere)
       declarations
       handlers
       raise statement

Chapter 12
    Generic units
    In and In-out generic parameters.
    Generic formal integer types.
    Generic formal array types.
    Generic formal access types.

Chapter 13
    package System is more complete
       Address attribute
    pragma Interface, Interface_Name
    Unchecked deallocation
    simple record representation clauses
    Unchecked conversion 


Features currently (10/1/1993) not supported
--------------------------------------------

Chapter 3
    Derived types
      with constraints
      from private types

    private type extensions

    Floating point declaration
      Floating point attributes
    Fixed point declaration
    Fixed point attributes
    tagged types with discriminants, 
    membership tests, conversion and allocation with class-wide types

Chapter 4
    Attributes other than first, last, pos, val, address
    dynamic concatenation
    aggregates for tagged types.
 
Chapter 6
    full conformance rules

Chapter 8
    exception renaming 

Chapter 9
    Tasks and protected types (some semantic processing,  no runtime)

Chapter 12
    Generic formal derived types.
    Generic formal packages.
    
Chapter 14
   Input/Output packages (all I/O is currently done with pragma interface)

--------------------------------------------------------------------------



Two working examples are in 

./usr/bin/src/gnat/hello 
./usr/bin/src/gnat/instruments


The first few packages of the runtime library are in 

./usr/bin/src/gnat/RTL


Please read README.gnat (the original README form NYU) and gnat-intro (a
kind of user guide for GNU-Ada)


BUGS

There is one known problem 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





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


                 reply	other threads:[~1993-10-10 15:41 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