Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!rutgers!cbmvax!daveh From: daveh@cbmvax.commodore.com (Dave Haynie) Newsgroups: comp.sys.amiga.programmer Subject: Re: C++ Message-ID: <20860@cbmvax.commodore.com> Date: 22 Apr 91 22:29:11 GMT References: <36711@ditka.Chicago.COM> Reply-To: daveh@cbmvax.commodore.com (Dave Haynie) Distribution: comp Organization: Commodore, West Chester, PA Lines: 37 In article <36711@ditka.Chicago.COM> comeau@csanta.attmail.com (Greg Comeau) writes: >In article cimshop!davidm@uunet.UU.NET (David S. Masterson) writes: >>Lattice C++ was a port of AT&T C++ 1.2 compiler to the Amiga and, so, is just >>a translator rather than a direct to object file compiler. >It's not "just a translator"! ;-) It does complete compiler duties (error >checking, syntax checking, semantics of C++, etc) building internal trees >looking nothing like C or C++. It just so happens that in the code generation >phase it outputs C as its object code depending upon the C compiler only for >the native object code generation. Sure sounds like the classical definition of "translator" to me. For those who haven't taken a compiler design course, you all should know that all compilers are also "translators". If a translator takes in some HLL, and spits out object code, it's a compiler. If not, it is some other kind of translator. I think there's some general suspicion that because most C++ compilers involve a two stage compilation process, that there's something wrong with them. There isn't, the only real problem going from C++ -> C -> QUAD -> Object, as with Lattice C++, is that the extra lexical analysis passes burn more CPU time than a direct C++ to object translator would like do. Other than that, there should not be any difference. >>Comeau Computing (718-945-0009) has recently announced a port of AT&T C++ 2.1 >This is true. And that sounds like something I'm REAL interest in. I really want to program in C++, but gave up on Lattice C++ 1.0 for the most part, mainly because of its lack of source level debugging. All that crashing on syntax errors didn't help either. >- Greg -- Dave Haynie Commodore-Amiga (Amiga 3000) "The Crew That Never Rests" {uunet|pyramid|rutgers}!cbmvax!daveh PLINK: hazy BIX: hazy "That's me in the corner, that's me in the spotlight" -R.E.M.