<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<span class="Apple-style-span" style="font-size: small; ">I defined USE_ALLOCA in config.h. Error is in stach_alloc.h.</span><br><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">Error : </font><span class="ecxApple-style-span" style="font-size:small;font-family:Tahoma">unresolved symbol _alloca, first referenced in ./libcelt/vq.obj</span></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">The code is in stack_alloc.h :</font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahom
a" size="2"><div>#if defined(VAR_ARRAYS)</div><div>.....</div><div>.....</div><div>#elif defined(USE_ALLOCA)</div><div><br></div><div>#define VARDECL(type, var) type *var</div><div><br></div><div># ifdef WIN32</div><div># define ALLOC(var, size, type) var = ((type*)_alloca(sizeof(type)*(size)))</div><div># else</div><div># define ALLOC(var, size, type) var = ((type*)alloca(sizeof(type)*(size)))</div><div># endif</div><div><br></div><div>#define SAVE_STACK</div><div>#define RESTORE_STACK</div><div>#define ALLOC_STACK</div><div><br></div><div>#else</div></font></div><div style="text-indent: 0px !important; font-family: Tahoma; font-size: 10pt; ">.....</div><div style="text-indent: 0px !important; font-family: Tahoma; font-size: 10pt; ">.....</div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">#endif /*VAR_ARRAYS*/</font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font><
/div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">CELT has been build when </font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">I changed "</font><span class="ecxApple-style-span" style="font-size:13px;font-family:Tahoma"># define ALLOC(var, size, type) var = ((type*)alloca(sizeof(type)*(size)))</span><span class="ecxApple-style-span" style="font-family:Tahoma;font-size:10pt">"</span></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">with "# define ALLOC(var, size, type) var = ((type*)calloc(sizeof(type)*(size),1))"</font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">and then "# define ALLOC(var, size, type) var = ((ty
pe*)malloc(sizeof(type)*(size)))",</font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">but application is broken down. I think this is because of bad memory allocation.</font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><span class="ecxApple-tab-span" style="white-space:pre">        </span></font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font><div id="ecxSkyDrivePlaceholder" style="font-family:Tahoma;font-size:10pt"></div><font class="ecxApple-style-span" face="Tahoma" size="2">> Date: Wed, 27 Apr 2011 11:54:27 -0400</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> From: jmvalin@jmvalin.ca</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> To: selami-tastan@windowslive.com</font><
br><font class="ecxApple-style-span" face="Tahoma" size="2">> CC: celt-dev@xiph.org</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> Subject: Re: [CELT-dev] Compile a fixed-point version of CELT on TI C55 DSP ?</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> </font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> If you don't post the error, there's no way anyone can help you. Also,</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> </font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > /* We don't support visibility on Win32 */< /div></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> </font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> the </div> surely doesn't help.</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> </font><br><font class="ecxApple-style-span" face="Tahoma" size="2">>
        Jean-Marc</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> </font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> On 11-04-27 11:24 AM, selami tastan wrote:</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > Hi ,</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > I want to test a fixed-point version of CELT on TI C55x DSP.</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > I create a config.h file that defines all the features that CCS</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > compiler. This is right ???</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > Can anyone only write any example codes (conf .h file) for that issue ?</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > In my opinion, I can
not compile CELT on TI C55 because of memory</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > allocation. Can anyone help ???</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > #define CELT_BUILD 1</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > /* Version extra */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > #define CELT_EXTRA_VERSION ""</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > /* Version major */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > #define CELT_MAJOR_VERSION 0</font><br><font class=
"ecxApple-style-span" face="Tahoma" size="2">> > /* Version micro */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > #define CELT_MICRO_VERSION 2</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > /* Version minor */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > #define CELT_MINOR_VERSION 5</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > /* Complete version string */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > #define CELT_VERSION "0.6.0"</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > //#define restrict</font><br><font class="ecxApple-style-span" face="Tahoma" size="2
">> > #define INLINEinline</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > #define inline inline</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > #define USE_ALLOCA 1</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > /* Enable support for TI C55X DSP */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > #define CONFIG_TI_C55X</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > /* Comment out the next line for floating-point code */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > #define FIXED_POINT 1</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font
><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > #define OPUS_BUILD 1</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > /* Get rid of the CELT VS compile warnings */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > #define CUSTOM_MODES</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > /* We don't support visibility on Win32 */< /div></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > #define EXPORT</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2
">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> ></font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > _______________________________________________</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > celt-dev mailing list</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > celt-dev@xiph.org</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">> > http://lists.xiph.org/mailman/listinfo/celt-dev</font><br></div>                                            </body>
</html>