home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20013 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.6 KB

  1. Xref: sparky comp.lang.c:20013 comp.lang.c++:19671
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!yale.edu!yale!mintaka.lcs.mit.edu!ai-lab!life.ai.mit.edu!tmb
  3. From: tmb@arolla.idiap.ch (Thomas M. Breuel)
  4. Newsgroups: comp.lang.c,comp.lang.c++
  5. Subject: Re: C/C++ Speed (was: Re: C/C++ Correctness (was: Re: C/C++ Speed))
  6. Date: 21 Jan 93 14:36:47
  7. Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle
  8.     Perceptive)
  9. Lines: 18
  10. Message-ID: <TMB.93Jan21143647@arolla.idiap.ch>
  11. References: <1993Jan18.171841.3008@informix.com> <1jka6h$n32@agate.berkeley.edu>
  12.     <1jkismINN3qq@armory.centerline.com> <1993Jan21.081537.8192@netcom.com>
  13. Reply-To: tmb@idiap.ch
  14. NNTP-Posting-Host: arolla.idiap.ch
  15. In-reply-to: erc@netcom.com's message of 21 Jan 93 08:15:37 GMT
  16.  
  17. >>>>> On 21 Jan 93 08:15:37 GMT, erc@netcom.com (Eric Smith) said:
  18.  
  19. > That implies that C++ has performance drawbacks to overcome, but there
  20. > are none except when using specific non-C features of C++ which are easy
  21. > to avoid, if avoiding them is desired.
  22.  
  23. Actually, both C and C++ have _serious_ performance drawbacks to
  24. overcome when it comes to scientific computation. The reason is that
  25. the pointer concept is so general that the compiler can determine
  26. virtually nothing about aliasing. The consequence is that most array
  27. code must be executed completely serially even when the hardware is
  28. capable of vectorization or parallelism.
  29.  
  30. The construct that primarily makes C/C++ unsafe and more difficult to
  31. debug than code in other languages (namely its very general notion of
  32. pointer) also makes it difficult to optimize.
  33.  
  34.                     Thomas.
  35.