home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.next.programmer:5889 comp.lang.c++:13101
- Path: sparky!uunet!wupost!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!forney.berkeley.edu!jbuck
- From: jbuck@forney.berkeley.edu (Joe Buck)
- Newsgroups: comp.sys.next.programmer,comp.lang.c++
- Subject: Re: Replacing NeXT cc with gcc-2.2.2
- Date: 31 Aug 1992 18:28:54 GMT
- Organization: U. C. Berkeley
- Lines: 53
- Message-ID: <17tod6INN8bp@agate.berkeley.edu>
- References: <1992Aug31.164909.7198@fcom.cc.utah.edu>
- NNTP-Posting-Host: forney.berkeley.edu
-
- In article <1992Aug31.164909.7198@fcom.cc.utah.edu> swillden@news.ccutah.edu (Shawn Willden) writes:
- >1) I understand that the newest version of gcc incorporates NeXT's
- >Objective-C extensions. Is gcc lacking anything? Is NeXT making any new
- >additions to their compiler for 3.0 that may not be present in the current
- >version of gcc?
-
- NeXT donated their Objective-C compiler (which they were obligated to do
- under the terms of the Gnu Public License) and it is distributed with
- gcc-2.x. However, they did not donate the run-time support or the class
- libraries. If you have a NeXT, you have these libraries and should be
- able to use the Objective-C compiler from Gnu (no, I haven't tried it); if
- you're on another platform, you can't (yet), because key parts are
- missing. I understand that there is now a group working on remedying
- this.
-
- >2) How complete is gcc's implementation of C++? Does it support templates
- >as described in _The C++ Programming Language 2nd Ed._ (by Bjarne
- >Stroustrup)? I know it doesn't support exceptions (yet).
-
- g++ is a fairly complete implementation. It supports templates, though
- there are still some bugs. We successfully use it for fairly sizable
- projects on several platforms (Sun-4, DecStation, HP Snake, not NeXT though).
-
- >3) How stable is 2.2.2?
-
- It's possible to make it dump core, but that's getting harder all the
- time. It's closer to the ARM than cfront 2.1 is, and not as close to
- the ARM as cfront 3.0.
-
- >4) How standard are the libg++ libraries? (i.e. how closely do they track
- >the work of the ANSI C++ committee? [In implementation, not content, ANSI
- >hasn't/isn't going to specify standard libraries, right?])
-
- As of libg++ 2.0, the iostream library is very close to that of AT&T.
- Yes, ANSI is going to specify standard libraries for streams, and possibly
- a couple of others. I think you mean "In interface, not implementation",
- since you don't care about the implementation if the interface is the same.
-
- >5) Is 2.2.2 compatible with the NeXT gdb or would I have to get gdb-4.6 as
- >well?
-
- I recommend getting gdb-4.6 if you're going to use g++. It has greatly
- improved facilities for finding member functions, including command
- completion (where you type part of the name and prototype of an overloaded
- member function and it completes it or lists the possibilities). I don't
- know what version of gdb NeXT provides; if it predates 4.0 you'll need
- to upgrade.
-
-
-
-
- --
- Joe Buck jbuck@ohm.berkeley.edu
-