home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / programm / 5889 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  3.0 KB

  1. Xref: sparky comp.sys.next.programmer:5889 comp.lang.c++:13101
  2. 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
  3. From: jbuck@forney.berkeley.edu (Joe Buck)
  4. Newsgroups: comp.sys.next.programmer,comp.lang.c++
  5. Subject: Re: Replacing NeXT cc with gcc-2.2.2
  6. Date: 31 Aug 1992 18:28:54 GMT
  7. Organization: U. C. Berkeley
  8. Lines: 53
  9. Message-ID: <17tod6INN8bp@agate.berkeley.edu>
  10. References: <1992Aug31.164909.7198@fcom.cc.utah.edu>
  11. NNTP-Posting-Host: forney.berkeley.edu
  12.  
  13. In article <1992Aug31.164909.7198@fcom.cc.utah.edu> swillden@news.ccutah.edu (Shawn Willden) writes:
  14. >1)    I understand that the newest version of gcc incorporates NeXT's 
  15. >Objective-C extensions.  Is gcc lacking anything?  Is NeXT making any new
  16. >additions to their compiler for 3.0 that may not be present in the current 
  17. >version of gcc?
  18.  
  19. NeXT donated their Objective-C compiler (which they were obligated to do
  20. under the terms of the Gnu Public License) and it is distributed with
  21. gcc-2.x.  However, they did not donate the run-time support or the class
  22. libraries.  If you have a NeXT, you have these libraries and should be
  23. able to use the Objective-C compiler from Gnu (no, I haven't tried it); if
  24. you're on another platform, you can't (yet), because key parts are
  25. missing.  I understand that there is now a group working on remedying
  26. this.
  27.  
  28. >2) How complete is gcc's implementation of C++?  Does it support templates
  29. >as described in _The C++ Programming Language 2nd Ed._ (by Bjarne
  30. >Stroustrup)?  I know it doesn't support exceptions (yet).
  31.  
  32. g++ is a fairly complete implementation.  It supports templates, though
  33. there are still some bugs.  We successfully use it for fairly sizable
  34. projects on several platforms (Sun-4, DecStation, HP Snake, not NeXT though).
  35.  
  36. >3)    How stable is 2.2.2? 
  37.  
  38. It's possible to make it dump core, but that's getting harder all the
  39. time.  It's closer to the ARM than cfront 2.1 is, and not as close to
  40. the ARM as cfront 3.0.
  41.  
  42. >4)    How standard are the libg++ libraries?  (i.e. how closely do they track
  43. >the work of the ANSI C++ committee? [In implementation, not content, ANSI
  44. >hasn't/isn't going to specify standard libraries, right?])
  45.  
  46. As of libg++ 2.0, the iostream library is very close to that of AT&T.
  47. Yes, ANSI is going to specify standard libraries for streams, and possibly
  48. a couple of others.  I think you mean "In interface, not implementation",
  49. since you don't care about the implementation if the interface is the same.
  50.  
  51. >5)    Is 2.2.2 compatible with the NeXT gdb or would I have to get gdb-4.6 as
  52. >well?
  53.  
  54. I recommend getting gdb-4.6 if you're going to use g++.  It has greatly
  55. improved facilities for finding member functions, including command
  56. completion (where you type part of the name and prototype of an overloaded
  57. member function and it completes it or lists the possibilities).  I don't
  58. know what version of gdb NeXT provides; if it predates 4.0 you'll need
  59. to upgrade.
  60.  
  61.  
  62.  
  63.  
  64. --
  65. Joe Buck    jbuck@ohm.berkeley.edu
  66.