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

  1. Path: sparky!uunet!pipex!warwick!uknet!cam-eng!cmh
  2. From: cmh@eng.cam.ac.uk (C.M. Hicks)
  3. Newsgroups: comp.dsp
  4. Subject: Re: compilers for DSP processors
  5. Message-ID: <1992Dec17.124618.9049@eng.cam.ac.uk>
  6. Date: 17 Dec 92 12:46:18 GMT
  7. References: <1992Dec16.141628.28304@imec.be>
  8. Sender: cmh@eng.cam.ac.uk (C.M. Hicks)
  9. Organization: cam.eng
  10. Lines: 37
  11. Nntp-Posting-Host: tw311.eng.cam.ac.uk
  12.  
  13. vanpraet@imec.be (Johan Van Praet) writes:
  14.  
  15.  
  16. >I am writing a report on different approaches to generate code for a
  17. >DSP processor and would like to hear some opinions of the net-people
  18. >about this.
  19.  
  20. >- Which method do you use to write code ?
  21.  
  22. All my DSP code is 100% assembler, but I often prototype algorithms
  23. in MATLAB on a PC to get the *algorithm* right, before diving into
  24. coding for speed on the DSP.
  25.  
  26. DSP assembly language is such that it is relatively easy to write good,
  27. readable code (main experience is with DSP32c and ADSP21xx). I find that
  28. a compiler really does not make coding that much easier, particularly if
  29. the assembler supports macros etc. Direct assembly language coding
  30. also allows me to use tricks with the pipeline, special addressing modes (eg
  31. bit-reversed, circular buffers), zero-overhead loops and so on, squeezing
  32. as much useful work out of the processor as possible. (Most of my work
  33. is in audio processing)
  34.  
  35. DSP chips are designed to be fast, and to slow them down with compiled code
  36. seems daft, particularly in real-time applications. Obviously development
  37. time (and hence cost) is an issue, but I can write DSP code as good as any 
  38. compiler, just not quite as quick...:-)
  39.  
  40. Christopher-- 
  41.  ==============================================================================
  42.  Christopher Hicks    |    If it doesn't fit...
  43.  cmh@uk.ac.cam.eng    |                        ...you need a bigger hammer.
  44.  ==============================================================================
  45. --
  46.  ==============================================================================
  47.  Christopher Hicks    |    If it doesn't fit...
  48.  cmh@uk.ac.cam.eng    |                        ...you need a bigger hammer.
  49.  ==============================================================================
  50.