[comp.lang.modula2] Modula-2 compiler for UNIX

aycock@cpsc.ucalgary.ca (John Aycock) (11/15/89)

In article <1726@quiche.cs.mcgill.ca>, sami@quiche.cs.mcgill.ca (Sami BOULOS) writes:
>  I am seeking opinions on Modula-2 compilers for our SUN UNIX system.
>  Does anyone have any experience with the SUN Modula-2 compiler? We 
>  require that the compiler support both calls from Modula-2 to C and vice
>  versa. The compiler should also be able to support tools such as dbx, and
>  easily interface to window systems such as X Windows. 

I'm a computer science student at the University of Calgary, and we've had to
use Sun's version of M2 for the sun4.  It supports interfacing to C, through
a type of definition module "DEFINITION FOR C MODULE <name>", and generates
dbx information through a -g command line option.  It has a few quirks, 
however; an implementation module is required for *all* definition modules,
regardless of whether one is actually needed.  The compiler also does not
seem to have any error recovery... I haven't found a non-fatal error to date.
And, if you use variant records, it does not store the variant fields in a
common space, instead storing ALL the fields ALL the time.  However, it does
provide an adequate interface to UNIX, all things considered.

::: John

  //\|_||\|	...{alberta|ubc-cs|utai}!calgary!aycock
\/ \/| || |

aubrey@rpp386.cactus.org (Aubrey McIntosh) (11/20/89)

I'd like to see some sample DEFINITION modules to access UNIX features.
I someone out there has a vendor who hasn't (foolishly) prohibited the
distribution of a DEF file, please post one.

Alternately, if there are some MINIX folks who are farther along in this,
and would post an example of your own work, please do it.


-- 
Aubrey McIntosh                  Freelance using Modula-2
                                 Real time, embedded, instruments.
Austin, TX 78723                 Enquiries welcome
1-(512)-452-1540                 aubrey%rpp386.Cactus.org@cs.utexas.edu