Question: Is there way to use the circular buffer when writing program in C on C6000 platform ?

Answer: The simple answer is no. I'm not aware of any DSP compiler that allows C to use circular buffering hardware. The problem is that C doesn't understand circular modification of pointers.

Most of the customers I've worked with have written their loops - requiring circular buffers - in assembly and then call them from C.

The easiest solution might be trying to find code that already performs the necessary algorithm. Baring that, you might be able to write a simple assembly function to update a pointer with circular modification and then call it from your C routine. This might be faster than managing the whole process in C.


Device: TMS320C6x
Category: TI Tools
Detail: Code Generation Tools
Title: Program in C for a Circular Buffer
Source: Case from the TMS320 Hotline
Date: 06/19/97
GenId: 30091

© Copyright 1998 Texas Instruments Incorporated. All rights reserved.
Trademarks, Important Notice!