Wanted: Compiler for MS-DOS & Win 31 
Author Message
 Wanted: Compiler for MS-DOS & Win 31

Hi there!

        I'm looking for a free ADA compiler, hopefully some kind
        of tutorial as well.

        Any hint will be appreciated.

                Spare me your ideas of fun like RTFM and so on
-- =

                /Anders S=F6dergrann

Sat, 23 Jan 1999 03:00:00 GMT  
 Wanted: Compiler for MS-DOS & Win 31


> Hi there!

>         I'm looking for a free ADA compiler, hopefully some kind
>         of tutorial as well.

>         Any hint will be appreciated.

>         P.S
>                 Spare me your ideas of fun like RTFM and so on
>                                                                 D.S
> --

>                 /Anders S?dergrann

Try ez2load from GWU:


GW-GNAT Distribution June 1996
Using the GW-GNAT EZ2Load Distribution for GNAT 3.05
Prof. Michael B. Feldman
Department of Electrical Engineering and Computer Science
The George Washington University
Washington, DC 20052
(202) 994-5919 (voice)
(202) 994-0227 (fax)

The purpose of this document is to guide you in using the
GNAT Ada 95 compiler and the other tools in the GW ez2load
distribution. This document does NOT teach Ada 95; we assume that
you have access to an Ada 95 textbook and/or online tutorial.

The Joy of Free Software
The distribution you are using is part of a growing body of freely-
distributed software. Unlike proprietary software, which is usually
developed within a single company, free software is produced by  
dedicated people working independently at their own sites. Considering
the geographic dispersion and varied talents of these developers,
free software shows a quite amazing degree of coherence and

Free software "packaging", however, is not usually what we've
come to expect from proprietary developers. To use free software
effectively, you must be prepared to work with collections of
components from different places and people, each with its own
volume and style of documentation, mostly in electronic form.
For the most part, there are no nicely printed and expensively
bound user manuals for free software.

Which main components are in this distribution?
This distribution contains three main components:

- GNAT, the Ada 95 compiler and binder;
- DJGPP, the underlying OS services, C compiler, assembler, and linker;
- AdaCAPS, the integrated development environment (IDE).

GNAT is a full Ada 95 compiler and binder produced originally at
New York University and now maintained by Ada Core Technologies (ACT),
a commercial company in New York City. Many ACT employees were
members of the original GNAT team at NYU.

GNAT is one of the large family of GNU tools sometimes called "gcc"
(though gcc itself is really nothing but a driver program that invokes
other tools). An advantage of the GNU structure is the portability it
provides: there are GNU code generators for nearly every computer
and the various GNU compilers produce intermediate code that is then
processed through the appropriate GNU code generator. This leads to
another advantage: The various GNU languages interoperate smoothly.
It is very easy and straightforward, for example, to mix Ada 95
code with C code, and not much harder to interface Ada 95 with
C++ code.

The DOS version of GNAT is built on a DOS version of gcc called DJGPP;
the "DJ" part of the name refers to the original author, DJ Delorie.
Charles W. Sandmann also contributed heavily. This freely distributable
system provides many UNIX-like services to the DOS world, but most
important, it gives DOS users a 32-bit environment with virtual memory
management. The DJGPP system is very large and rich; GNAT/DOS is
distributed with a minimal DJGPP called djgpp200.zip.

The ez2load IDE is called AdaCAPS, and comes from Ken Price of
Pepperell, Massachusetts. The general look and feel is that of the
familiar Borland DOS development environments. The commands and
keystrokes are simple and intuitive, and there is ample online help.

AdaCAPS is supported by a suite of programs, sometimes called the
GW-GNAT suite, developed by Charles Kann and Michael Feldman of
The George Washington University, Washington, DC.

There is also a hypertext Ada 95 Reference Manual, for which
we are indebted to Arthur Vargas Lopes of Porto Alegre, Brazil.

Key Documents
The components described above were developed independently, and
each has its own documentation. The document you are reading is
an attempt to give you some guidance in using the various components,
but not to duplicate other documents.

The DJGPP documents are installed in a docs subdirectory of the
top-level GNAT directory, that is, if the top-level GNAT directory
is C:\GNAT305, the DJGPP documents are in C:\GNAT305\DOCS. The
most important DJGPP document is the frequently-asked-questions
file, DJGPPFAQ.TXT. This is a lengthy document, very rich in
information. Item 9 and its sub-items is especially useful if
you experience unexpected crashes or register dumps. CWSDPMI.DOC
is also useful; it describes the dpmi memory manager provided
with DJGPP. (CWS is Charles W. Sandmann, author of the
memory manager.)

To avoid mixing too many documents from different sources,
the GNAT and AdaCAPS documents are installed separately If  
you installed GNAT and the other tools at the same time,
the installer will have created, in the top level GNAT
directory, a subdirectory GW-GNAT, under which is a DOCS
subdirectory. Thus if your GNAT directory is C:\GNAT,
the GNAT and AdaCAPS documents are in C:\GNAT\GW-GNAT\DOCS.

GNAT itself is described in GNATINFO.TXT; all the details of
AdaCAPS are to be found in ADACAPS.DOC.

System Requirements
You need:

- IBM PC Compatible, 386 or 486, running MS-DOS or PC-DOS;
  testing has been done with DOS 5 or greater.

  We have done some testing using the DOS mode of Windows 95,
  and using a Windows 95 DOS window; everything seems to
  operate successfully in those modes. If you have problems,
  try booting DOS by pressing F4 at system startup, before
  Windows 95 has a chance to start.

  If you are a Windows 3.1 user, we suggest that you get
  started with ez2load by quitting Windows and running from
  a "pure" DOS system. Move to Windows 3.1 later, after you
  know what to expect from DJGPP and GNAT.

- at least 4 mb available extended memory (you will find
  that performance is VERY slow with less than 8 mb RAM)

  If you have at least 8 mb RAM, you will find a huge
  speedup in performance if you make sure to use the DOS
  smartdrv operation to set up a disk cache of at least 2mb
  Check your DOS manual on how to install this.

- at least 21 mb free hard disk space for the software;
  it is also advisable to have at least 10 mb of space
  available for DJGPP's virtual memory swap file.

We do not have facilities to test the components in a network
environment; if you are operating in such an environment
(a university lab, for example), we will greatly appreciate
your writing us (e-mail preferred) to describe your successes
and/or difficulties.

We assume you have a complete ez2load distribution, consisting of    
at least:

- two installer programs, GINSTALL.EXE and DINSTALL.EXE.
  GINSTALL installs from hard disk or CD-ROM; DINSTALL installs
  from diskettes.

- the installer script file, INSTALL.SCR.

- the mini-DJGPP, DJGPP200.ZIP

- the four GNAT files, GNAT3051.ZIP - GNAT3054.ZIP

- the IDE and tools file, ACAPS215.ZIP (possibly the last digit
  will be higher than 5, if we release a newer IDE version).

In using DJGPP, GNAT, and AdaCAPS, it is important to ensure that
the path and envirinment variables are set correctly. The installation
program creates a DOS command script (batch file), named GNAT305.BAT
by default. This batch file sets up the necessary environment.

You need to execute this batch file before running any of the
To ensure that this happens automatically, you can copy the batch file
into your AUTOEXEC.BAT, or simply add a call to GNAT305 as the last
line of your AUTOEXEC.BAT.

Once you are set up, change directories to a working directories
which contains, or will contain, your Ada 95 programs, then


and the IDE will start. We give no further details here on
AdaCAPS; refer to the online help or ADACAPS.DOC.

GNAT/DOS File Names
To use GNAT without difficulty, you must make sure that your
Ada unit (program or package) name agrees with its file name
(except that the file name should be in lower case). Further,
a package specification should have an .ads (Ada Specification)
file extension and any other unit should have an .adb (Ada Body)

A main program My_Prog should be in a file called my_prog.adb.
A package My_Pack should be divided into my_pack.ads and
my_pack.adb. When you are first getting started, keep your
program and package names at 8 or fewer characters, so that
the DOS file names will match exactly. When you gain experience,
you can learn GNAT's rules for converting longer unit names
into 8+3 file names. These rules appear in GNATINFO.TXT.

AdaCAPS handles compilation, linking, and execution by invoking
the appropriate GW-GNAT program. These programs encapsulate the
most common options, and provide automatically for listing files
and debugging support.

These programs can also be executed from the DOS command line,
so we describe them here. Used consistently, these programs make
it easy for new users to get started with GNAT. To use these,
you must first have executed the batch file described above.

To compile a program, say My_Prog, in a file my_prog.adb, type

  gcompile my_prog.adb

Whether or not there are any compilation errors, gcompile
always produces a listing file for your program unit.
(In a class environment, this ensures that your listing is
always consistent with your compiled code.) An .ads source
files produces a .lss listing file; an .adb file ...

read more »

Sun, 24 Jan 1999 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. >Was: Wanted: PD MS-DOS Ada compiler

2. Recommendations for a MS-DOS Prolog Compiler Wanted

3. Wanted: Rayn-McFarland F77 Compiler for MS-DOS

4. Sterling Prize Drawing - 11 prizes to be won by May 31

5. dos error 31 general failure

6. Dos Error 31 on NT - help

7. DATA(31) and AMODE=31

8. ObjectWorks 4.1 in MS-Win: Dos app kills ObjectWorks

9. Advice Needed re: MS-DOS/Win 98 as Python environment

10. REXX NT,DOS-WIN,OS/2: Wanted

11. APL terminal program for MS-DOS wanted

12. MS-DOS version of TIDY wanted


Powered by phpBB® Forum Software