home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / apps / 8339 < prev    next >
Encoding:
Internet Message Format  |  1992-11-16  |  1.7 KB

  1. Xref: sparky comp.os.os2.apps:8339 comp.os.os2.programmer:6479
  2. Path: sparky!uunet!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!usc!not-for-mail
  3. From: ckhung@pollux.usc.edu (Chao-Kuei Hung)
  4. Newsgroups: comp.os.os2.apps,comp.os.os2.programmer
  5. Subject: Which gcc is better? (Was: Re: qsort() in gcc does not do indirect sorting?)
  6. Date: 16 Nov 1992 11:08:55 -0800
  7. Organization: University of Southern California, Los Angeles, CA
  8. Lines: 26
  9. Distribution: world
  10. Message-ID: <1e8rk7INNpn1@pollux.usc.edu>
  11. NNTP-Posting-Host: pollux.usc.edu
  12.  
  13. In article <1e3ejjINNdf4@pollux.usc.edu> I asked the question
  14. of qsort in gcc. In article <1e44n6INN49u@iskut.ucs.ubc.ca>
  15. ochealth@unixg.ubc.ca (ochealth) pointed out there were two
  16. problems, namely my compare function did not reflect the case
  17. when two items are equal, and that the linker mysteriously
  18. linked the library function index() for my array index.
  19.  
  20. Thank you ochealth for helping me out. I still don't quite
  21. understand why it is necessary that the compare function
  22. return 0 when two items are equal as my understanding from
  23. Robert Sedgewick's Algorithm is different. But anyway I would
  24. not like to start discussions more appropriate to some other
  25. group. Here is another question:
  26.  
  27. How do the two versions of gcc (gcc/2 and emx) compare? I
  28. was not aware there are two versions of gcc until ochealth
  29. pointed out, and I didn't carefully read the documents with
  30. the emx version to find a comparison or even mentioning of
  31. the other version. Could the programming gurus give us a
  32. summary and advice on choosing which one to use? BTW, I am
  33. happy to read that Borland C++ is coming out but wonder if
  34. there is more official and detailed announcement. Thank you
  35. for your comments and suggestions.
  36.  
  37. Chao-Kuei Hung
  38. ckhung@usc.edu
  39.