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

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!network.ucsd.edu!ucsbcsl!foxtrot.ccmrc.ucsb.edu
  2. From: doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: Replacing NeXT cc with gcc-2.2.2
  5. Message-ID: <5583@ucsbcsl.ucsb.edu>
  6. Date: 31 Aug 92 19:09:09 GMT
  7. References: <1992Aug31.164909.7198@fcom.cc.utah.edu>
  8. Sender: root@ucsbcsl.ucsb.edu
  9. Reply-To: doug@foxtrot.ccmrc.ucsb.edu
  10. Distribution: usa
  11. Lines: 64
  12.  
  13. In article <1992Aug31.164909.7198@fcom.cc.utah.edu> swillden@news.ccutah.edu  
  14. (Shawn Willden) writes:
  15. ] Hi, I have a few questions about replacing cc with gcc (I have NeXTStep 2.0,  
  16. BTW)
  17. ] 1)    I understand that the newest version of gcc incorporates NeXT's 
  18. ] Objective-C extensions.  Is gcc lacking anything?  Is NeXT making any new
  19. ] additions to their compiler for 3.0 that may not be present in the current 
  20. ] version of gcc?
  21. I seem to remember hearing that there were some problems with compiling NeXT  
  22. Apps using gcc in Obj-C mode, but the postings were a long time ago, and since  
  23. then I have seen no references to them.  The NeXT 3.0 compiler will be a  
  24. tradeoff:  it is based on gcc/g++ 1.92 (or something close) with NeXT  
  25. additions, most especially in the preprocessor, which allows NeXT to use a new  
  26. type of # directive in its header files which will probably choke gcc.  Other  
  27. than that, we can only hope that the people at NeXT were able to iron out the  
  28. innumerable bugs and problems that were present in the source for gcc 1.9!
  29.  
  30. ] 2)    How complete is gcc's implementation of C++?  Does it support templates
  31. ] as described in _The C++ Programming Language 2nd Ed._ (by Bjarne  
  32. Stroustrup)?  I
  33. ] know it doesn't support exceptions (yet).
  34. ]
  35. Template support is there, but still needs some work (at least from what I see  
  36. in terms of posted problems).  This seems to be getting better with each  
  37. version.
  38.  
  39. ] 3)    How stable is 2.2.2? 
  40. Not really a very useful way to ask the question, but in general it is pretty  
  41. good.  It is far superior to the modified 1.39 compiler that comes on the 2.1  
  42. NeXT.  However, you should be prepared to upgrade the 2.2.2 compiler to each  
  43. subsequent release.  More problems are fixed than new ones appear, so it has  
  44. always been advantageous to move to the new version ASAP.
  45.  
  46. ] 4)    How standard are the libg++ libraries?  (i.e. how closely do they track
  47. ] the work of the ANSI C++ committee? [In implementation, not content, ANSI
  48. ] hasn't/isn't going to specify standard libraries, right?])
  49. ]
  50. Since implementation in C++ is basically the public interface, I would say that  
  51. it tracks fairly well.  Of course, most of the library classes have no analogue  
  52. in ANSI-land.
  53.  
  54. ] 5)    Is 2.2.2 compatible with the NeXT gdb or would I have to get gdb-4.6 as
  55. ] well?
  56. No and no.  You cannot use the NeXT gdb (except to get backtraces), and you  
  57. cannot build gdb 4.6 (or any other version) on the NeXT.  This is a big minus,  
  58. but I refuse to go back to the outdated native C++ compiler.
  59.  
  60. ] I would greatly appreciate answers and/or experiences from anyone who has had
  61. ] experience with gcc-2.2.2.
  62. I have been using it on both my NeXT and on our Sun since the day it was  
  63. released.  I am very satisfied, and given the alternatives (old NeXT version or  
  64. expensive commercial version) I am quite willing to do the work to upgrade  
  65. and/or patch the code as problems are discovered and fixed.
  66.  
  67. --
  68. Douglas Scott                              (805)893-8352
  69. Center for Computer Music Research and Composition
  70. University of California, Santa Barbara
  71. Internet: (NeXTMail ok)   <doug@foxtrot.ccmrc.ucsb.edu>
  72.