home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.os2.apps:8364 comp.os.os2.programmer:6497
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!access.usask.ca!kakwa.ucs.ualberta.ca!unixg.ubc.ca!ochealth
- From: ochealth@unixg.ubc.ca (ochealth)
- Newsgroups: comp.os.os2.apps,comp.os.os2.programmer
- Subject: Re: Which gcc is better? (Was: Re: qsort() in gcc does not do indirect sorting?)
- Date: 17 Nov 1992 06:11:53 GMT
- Organization: University of British Columbia, Vancouver, B.C., Canada
- Lines: 63
- Distribution: world
- Message-ID: <1ea2f9INNda5@iskut.ucs.ubc.ca>
- References: <1e8rk7INNpn1@pollux.usc.edu>
- NNTP-Posting-Host: unixg.ubc.ca
-
- In article <1e8rk7INNpn1@pollux.usc.edu> ckhung@pollux.usc.edu (Chao-Kuei Hung) writes:
- :Thank you ochealth for helping me out. I still don't quite
- :understand why it is necessary that the compare function
- :return 0 when two items are equal as my understanding from
- :Robert Sedgewick's Algorithm is different. But anyway I would
- :not like to start discussions more appropriate to some other
- :group. Here is another question:
- :
- :How do the two versions of gcc (gcc/2 and emx) compare? I
- :was not aware there are two versions of gcc until ochealth
- :pointed out, and I didn't carefully read the documents with
- :the emx version to find a comparison or even mentioning of
- :the other version. Could the programming gurus give us a
- :summary and advice on choosing which one to use? BTW, I am
- :happy to read that Borland C++ is coming out but wonder if
- :there is more official and detailed announcement. Thank you
- :for your comments and suggestions.
-
-
- GCC/2 is based on the GNU C compiler. EMX/GCC is based on the same GNU
- C compiler. Essentially the heart of the two packages are exactly the same.
-
- The two packages differ in several areas:
-
- -GCC/2 's C library was a quick port of the BSD lib.
- -EMX's C library is more OS/2 customized, and IMHO, more thoroughly tested
- (I've had surprises from the GCC/2 library)
-
- -I am told that GCC/2 now has a floating point library that uses the math
- coprocessor. GCC/2 is now even with EMX there.
-
- -GCC/2 and EMX both support native OS/2 .obj files and .lib files.
- EMX also supports UNIX .o and .a files, which can make porting
- UNIX programs easier.
-
- -To my knowledge, GCC/2 does not support OS/2 DLLs. EMX can create and
- use DLLs.
-
- -I am not sure how thread safe the GCC/2 library is. THe EMX C library
- is thread safe (for the most part :-) there may be some thread bugs
- lying around)
-
- -EMX comes with GDB, a debugger. GDB is useless for debugging threaded
- programs, but it's better than nothing. GCC/2 doesn't have a debugger
-
- -this is subjective, but I think EMX has more momentum behind it, at least
- for support. The EMX name is confusing, and I'm sure people overlook it.
-
- -EMX is being enhanced by the author, Eberhard Mattes, and there will
- be some nifty features in the 0.8f version (for example, the ability
- to call 16 bit 'thunked' functions directly)
-
- they're both free, so just get both and decide which is better.
- :
- :Chao-Kuei Hung
- :ckhung@usc.edu
-
-
- --
- ______________________________________________________________________________
- jpm: ochealth@unixg.ubc.ca
- Happily using OS/2 2.0 because MS Windows isNT ___
- Insert VapourFeature ^^^
-