home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / dsp / 2897 < prev    next >
Encoding:
Text File  |  1993-01-01  |  3.4 KB  |  74 lines

  1. Newsgroups: comp.dsp
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!oakhill!oakhill!jeff
  3. From: jeff@dsp.sps.mot.com (Jeff Enderwick)
  4. Subject: Re: Motorola's gcc diffs?
  5. In-Reply-To: moshier@world.std.com's message of 31 Dec 92 22:38:07 GMT
  6. Message-ID: <JEFF.93Jan1172638@dsp.sps.mot.com>
  7. Sender: news@oakhill.sps.mot.com
  8. Nntp-Posting-Host: 223.10.249.92
  9. Organization: Motorola DSP Compilers
  10. References: <Bzs3CD.26o@world.std.com> <1992Dec25.181709.19960@qcj.icon.com>
  11.     <BzvJAM.H8C@world.std.com> <JEFF.92Dec31092357@dsp.sps.mot.com>
  12.     <C05AvJ.KKD@world.std.com>
  13. Date: 1 Jan 93 17:26:38
  14. Lines: 58
  15.  
  16.  
  17. >   I paid $700 cash for the original attempt.  Before deciding whether
  18. >to upgrade, I asked Motorola some questions. No, it does not do pipeline
  19. >optimization.  No, data in x, y, p memory spaces are not supported; you
  20. >have to choose either x or y and not both.  No, it does not have a
  21. >fractional data type (can that really be true?).  Well, I decided to
  22. >hold off and stick with the one I made from Dave Dunfield's 8086 C
  23. >compiler.
  24.  
  25. Kind of. Actually we do attempt to jam multiple instructions into
  26. single words, and we also try to avoid pipeline hazards. If you're
  27. speaking of "software pipelining", we haven't implemented the aliasing
  28. analysis that is needed to do it right. The X / Y memory issue is a
  29. very tricky one.  Given a pointer as an argument, you need to be able
  30. to figure out which data space it belongs to; this implies modifying C
  31. (the language).  Basically, what you get is GCC with some extra
  32. optimizations thrown in.
  33.  
  34. >   Perhaps TI is the only DSP company that can *afford* a real compiler
  35. >project.  TI, with its near-monopoly market share, has improved its
  36. >software from awful in 1982 to very good in 1992.  (But I can't use
  37. >their chip any more! It always seems to work out slower than the
  38. >alternatives.) Meanwhile the other companies presumably do what software
  39. >support they can, but they sure leave a lot to wish for.  I say, Never
  40. >mind the windows and COFF and source level debuggers, just give us a
  41. >better compiler.
  42.  
  43. I used to think like you. Personally, I find implementing compiler
  44. optimizations to be the fun part of my job. I wish everyone had your
  45. perspective. Unfortunately for us, most customers don't. If a compiler
  46. is even 10% slower than hand code for time critical loops, then the
  47. DSP engineer is going to hand code them. Maybe you work on projects
  48. where volume is low, and the cost of parts doesn't matter, yielding a
  49. situation where you'd rather spend a little more on a faster part that
  50. take the time to hand code. Most customers who will do high volume 
  51. production will want to use the slowest (cheapest) part that will get
  52. the job done. On some loops you may hit paydirt with a compiler; on
  53. most you're compiled code will be slower that hand code. 
  54.  
  55. Overwhelmingly, DSP compiler customers seem to use C to speed the
  56. development of the non-time critical sections of their application.
  57. The sections that are tight for time are hand coded. The goal of
  58. introducing better optimizers is to move the frontier where the
  59. engineer needs to hand code. As for debuggers and windows these are a
  60. really big deal. people want to be able to debug systems as easily and
  61. as quickly as possible. Good debuggers are a high priority for most
  62. customers.
  63.  
  64. I'd be really interested in finding out which TI compiler you're talking 
  65. about (and which version). I'd like to get a copy and look at what comes
  66. out!
  67.  
  68.     thanks,
  69.  
  70.     Jeff Enderwick
  71.     jeff@dsp.sps.mot.com
  72.  
  73.  
  74.