Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!bu-cs!halleys!ulowell!page From: page@ulowell.UUCP Newsgroups: comp.lang.modula2,comp.unix.questions Subject: Re: modula2 and dbx Message-ID: <1286@ulowell.cs.ulowell.edu> Date: Sat, 16-May-87 16:11:57 EDT Article-I.D.: ulowell.1286 Posted: Sat May 16 16:11:57 1987 Date-Received: Sun, 17-May-87 02:52:35 EDT References: <312@paisley.ac.uk> <87@bernina.UUCP> Reply-To: page@ulowell.cs.ulowell.edu (Bob Page) Organization: University of Lowell Lines: 55 Xref: utgpu comp.lang.modula2:181 comp.unix.questions:2066 rh@cs.paisley.ac.uk (Robert Hamilton) wrote: >We've been using the Cambridge m2 compiler since 4.1 . >Anybody had experience of both? how does mod compare? heiser@ethz.UUCP (Gernot Heiser) wrote: >I had a look at the DEC compiler when we got it and was disgusted. They >shouldn't be allowed to call that Modula-2, it looks more like a dialect of >C. Probably the people who wrote it never programmed any Modula-2. [heat on high] Gimme a break, Gernot. We use both here - Powell's compiler (the DECWRL one) on a VAX (ultrix and 4.3bsd) and the Cambridge compiler on a Sequent (32032). Both have LOUSY error messages. Powell's compiler has a couple of small bugs that you can work around, but it produces very good code, is fast, is quite clean internally, and is well integrated with UNIX. True, the I/O library just calls the C library, but most people around here consider that a FEATURE, based on the brain-damaged I/O that Wirth specifies. We have written a mostly Wirth-compatible Modula library for those people who want to stick to the original text. It was not hard to do. The Cambridge compiler is a joke. The compiler chokes and core dumps on silly little things, it produces HORRIBLE code (and is wrong a lot of times, even on the most fundamental constructs), is NOT nicely written (read: easy to fix) and uses hidden subdirectories (.sym, .lnk, etc) to even work. It also uses non-standard (not Powell, C or Wirth) I/O. It doesn't even support "set of char"!!! The debugger doesn't work at all. The linker goes into infinite loops at times. Maybe the VAX version of the Cambridge compiler is OK, but the NS32032 version sucks rocks. I'd like to have somebody port the Powell compiler to the Sequent rather than deal with the Cambridge compiler. Disclaimer: I do not know mod2 at all, and do not use the compilers, but have to listen to my users constantly bitching about how stupid the packages are. Gernot again: >It took me very little time to decide that the Cambridge system is excellent >(especially stuff like m2make etc). It took me much less time to decide to >keep off the DEC compiler. Neither compiler is acceptable for real work, but I'd rather have a compiler that generates good CORRECT code than one that makes you scratch your head for two days until you realize the compiler reuses a register when it's not supposed to be. [heat on low] Bug reports available upon request. ..Bob -- Bob Page, U of Lowell CS Dept. page@ulowell.{uucp,edu,csnet}