[CELT-dev] FW: Compile a fixed-point version of CELT on TI C55 DSP ?

selami tastan selami-tastan at windowslive.com
Thu Apr 28 06:37:20 PDT 2011


I defined USE_ALLOCA  in config.h. Error is in stach_alloc.h.

Error : unresolved symbol _alloca, first referenced in ./libcelt/vq.obj

The code is in stack_alloc.h :
#if defined(VAR_ARRAYS)..........#elif defined(USE_ALLOCA)
#define VARDECL(type, var) type *var
# ifdef WIN32#  define ALLOC(var, size, type) var = ((type*)_alloca(sizeof(type)*(size)))# else#  define ALLOC(var, size, type) var = ((type*)alloca(sizeof(type)*(size)))# endif
#define SAVE_STACK#define RESTORE_STACK#define ALLOC_STACK
#else..........#endif /*VAR_ARRAYS*/

CELT has been build when I changed  "#  define ALLOC(var, size, type) var = ((type*)alloca(sizeof(type)*(size)))"with          "#  define ALLOC(var, size, type) var = ((type*)calloc(sizeof(type)*(size),1))"and then    "#  define ALLOC(var, size, type) var = ((type*)malloc(sizeof(type)*(size)))",but application is broken down. I think this is because of bad memory allocation.	

> Date: Wed, 27 Apr 2011 11:54:27 -0400
> From: jmvalin at jmvalin.ca
> To: selami-tastan at windowslive.com
> CC: celt-dev at xiph.org
> Subject: Re: [CELT-dev] Compile  a fixed-point version of CELT on TI C55 DSP ?
> 
> If you don't post the error, there's no way anyone can help you. Also,
> 
>  > /* We don't support visibility on Win32 */< /div>
> 
> the </div> surely doesn't help.
> 
> 	Jean-Marc
> 
> On 11-04-27 11:24 AM, selami tastan wrote:
> > Hi ,
> >
> > I want to test a fixed-point version of CELT on TI C55x DSP.
> > I create a config.h file that defines all the features that CCS
> > compiler. This is right ???
> > Can anyone only write any example codes (conf .h file) for that issue ?
> > In my opinion, I can not compile CELT on TI C55 because of memory
> > allocation. Can anyone help ???
> >
> >
> > #define CELT_BUILD 1
> >
> > /* Version extra */
> > #define CELT_EXTRA_VERSION ""
> >
> > /* Version major */
> > #define CELT_MAJOR_VERSION 0
> > /* Version micro */
> > #define CELT_MICRO_VERSION 2
> >
> > /* Version minor */
> > #define CELT_MINOR_VERSION 5
> >
> > /* Complete version string */
> > #define CELT_VERSION "0.6.0"
> >
> > //#define restrict
> > #define INLINEinline
> > #define inline inline
> >
> > #define USE_ALLOCA 1
> >
> > /* Enable support for TI C55X DSP */
> > #define CONFIG_TI_C55X
> >
> > /* Comment out the next line for floating-point code */
> > #define FIXED_POINT 1
> >
> > #define OPUS_BUILD 1
> >
> > /* Get rid of the CELT VS compile warnings */
> >
> > #define CUSTOM_MODES
> >
> > /* We don't support visibility on Win32 */< /div>
> > #define EXPORT
> >
> >
> >
> >
> > _______________________________________________
> > celt-dev mailing list
> > celt-dev at xiph.org
> > http://lists.xiph.org/mailman/listinfo/celt-dev
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/opus/attachments/20110428/308d7623/attachment-0002.htm 


More information about the celt-dev mailing list