home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / bit / listserv / iamiga / 10620 < prev    next >
Encoding:
Text File  |  1993-01-26  |  1.6 KB  |  39 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!UZ.KULEUVEN.AC.BE!JORRIT
  3. Message-ID: <9301260732.AA02132@malpighi.uz.kuleuven.ac.be>
  4. Newsgroups: bit.listserv.i-amiga
  5. Date:         Tue, 26 Jan 1993 08:38:58 +0100
  6. Sender:       Info-Amiga List <I-AMIGA@RUTVM1.BITNET>
  7. From:         jorrit@UZ.KULEUVEN.AC.BE
  8. Subject:      Re: C Compilers
  9. Lines: 28
  10.  
  11. >Does anyone have recommendations on GCC or DICE?
  12.  
  13. GCC is very good (generates magnificent code and is very useful to port
  14. Unix programs) but you need a lot of memory and harddisk space (4 megabyte
  15. memory is about the minimum I think). GCC is actually three compilers in
  16. one: normal Ansi C with many many GNU extensions, a extensive C++ compiler
  17. and an Objective C compiler.
  18.  
  19. If you're only concerned about portability to other GCC compilers on other
  20. platforms you can use some of the nice extra C features. Here are some
  21. examples:
  22.  
  23. - A 'long long' type for 64 bit integers.
  24. - You can use constructions like (a > b ? c : d) = 3; which assigns 3 to
  25.   'c' if a > b or 3 to 'd' otherwise.
  26. - A new 'typeof' command to get the type of an identifier. For example:
  27.     int a;
  28.     typeof (a) b;
  29.   This can be very useful in macros (if you want to write a general and safe MAX
  30.   macro for example)
  31. - You can also use {} in expressions, allowing things like:
  32.      a={int b,i; for (b=i=0;i<4;i++) b += i; b}+4;
  33. - And a lot more I don't remember
  34.  
  35. -----------------------------------------------------------------------------
  36. Jorrit Tyberghein : author of PowerVisor
  37. jorrit@uz.kuleuven.ac.be
  38. -----------------------------------------------------------------------------
  39.