home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / dsp / 2836 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.9 KB

  1. Path: sparky!uunet!olivea!apple!malcolm
  2. From: malcolm@Apple.COM (Malcolm Slaney)
  3. Newsgroups: comp.dsp
  4. Subject: Re: compilers for DSP processors
  5. Summary: No more assembly language!!!
  6. Keywords: compilers, dsp, assembly language, vliw, c
  7. Message-ID: <75774@apple.apple.COM>
  8. Date: 19 Dec 92 16:56:59 GMT
  9. References: <1992Dec16.141628.28304@imec.be> <1992Dec17.124618.9049@eng.cam.ac.uk>
  10. Organization: Apple Computer Inc, Cupertino, CA
  11. Lines: 28
  12.  
  13. cmh@eng.cam.ac.uk (C.M. Hicks) writes:
  14. >DSP chips are designed to be fast, and to slow them down with compiled code
  15. >seems daft, particularly in real-time applications. 
  16.  
  17. Wow, you must work for a DSP chip maker.  Most DSP makers seem to be clueless
  18. about how to write software.  Or maybe you have been brainwashed by the 
  19. hardware makers (I don't mean this personally....I'm just tired of the
  20. idea that assembly language is necessary.)
  21.  
  22. On most reasonable processors, people have found that the compilers write
  23. better code than humans do.  Compilers can do a much better job of global
  24. register allocation, scheduling, and all the other things that make for
  25. good translations.  This is especially true of today's RISC machines (DEC,
  26. IBM, HP, Sun, Cray, MIPS). For a good exposition of the power of a compiler, 
  27. read John Ellis' book on the Bulldog compiler for VLIW machines.
  28.  
  29. It is especially amusing that the C compiler for the AT&T chips is so BAD.
  30. The assembly language was designed to look like C.  Analog Devices is at
  31. least trying to modify C to make it friendlier for DSP but I'm not sure that
  32. their efforts will be successful.  Any high level language is better for
  33. us humans than machine code.
  34.  
  35. Listen up DSP makers....compilers can write better assembly code than us
  36. mere humans.....especially if you give the compiler a chance.  Pay attention
  37. to the lessons that the RISC people taught the CISC dinasours.
  38.  
  39.                     Malcolm Slaney
  40.                     DSP Hacker on all sorts of machines
  41.