<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
h2
        {margin-top:12.0pt;
        margin-right:0in;
        margin-bottom:3.0pt;
        margin-left:.4in;
        text-indent:-.4in;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:Arial;
        font-style:italic;}
h4
        {margin-top:12.0pt;
        margin-right:0in;
        margin-bottom:3.0pt;
        margin-left:0in;
        text-indent:0in;
        page-break-after:avoid;
        font-size:10.0pt;
        font-family:Arial;}
p.MsoHeader, li.MsoHeader, div.MsoHeader
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.Style1, li.Style1, div.Style1
        {margin-top:7.0pt;
        margin-right:0in;
        margin-bottom:7.0pt;
        margin-left:.4in;
        text-align:justify;
        text-indent:-.4in;
        line-height:11.0pt;
        font-size:11.0pt;
        font-family:Arial;
        letter-spacing:-.1pt;
        font-weight:bold;}
p.AppendixHeading2, li.AppendixHeading2, div.AppendixHeading2
        {margin-top:7.0pt;
        margin-right:0in;
        margin-bottom:7.0pt;
        margin-left:0in;
        text-align:justify;
        line-height:11.0pt;
        font-size:11.0pt;
        font-family:Arial;
        letter-spacing:-.1pt;
        font-weight:bold;}
span.EmailStyle21
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>

<style>
p.MsoNormal
        {margin-left:3.0pt;}
</style>
</head>

<body lang=EN-US link=blue vlink=purple style='margin-left:3.0pt;margin-top:
3.0pt;margin-right:3.0pt;margin-bottom:.75pt'>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>It is possible to use static variables.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In config.h for the C54/C55 I use:</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-right:3.0pt;margin-bottom:0in;margin-left:
3.0pt;margin-bottom:.0001pt'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp; #warn
Using MANUAL_ALLOC stack.</span></font></p>

<p class=MsoNormal style='margin-right:3.0pt;margin-bottom:0in;margin-left:
3.0pt;margin-bottom:.0001pt'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp;
#define MANUAL_ALLOC</span></font></p>

<p class=MsoNormal style='margin-right:3.0pt;margin-bottom:0in;margin-left:
3.0pt;margin-bottom:.0001pt'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp;
#define USER_MISC</span></font></p>

<p class=MsoNormal style='margin-right:3.0pt;margin-bottom:0in;margin-left:
3.0pt;margin-bottom:.0001pt'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp;
#define VERBOSE_ALLOC</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> speex-dev-bounces@xiph.org
[mailto:speex-dev-bounces@xiph.org] <b><span style='font-weight:bold'>On Behalf
Of </span></b>Michael Jacobson<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, August 06, 2007 2:35
PM<br>
<b><span style='font-weight:bold'>To:</span></b> speex-dev@xiph.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Speex-dev] Data space
crunching-how small can I get?</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>Hi,</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>I am using speex 1.2beta2 on a
C5416, 16 bit, narrowband.</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>The project I am implementing speex
into&nbsp;is very limited in Data space.&nbsp; In the speex decode_init and
encode_init there are allocs that, combined, take up 0x0F94 of data
memory.&nbsp; I do not know why the various allocs are sized the way they are
but that number is too big to fit into our project.&nbsp; I was wondering if
those numbers (for the allocs)&nbsp;are at all flexible and if they are what is
their minimum size? how low can I go...</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>Also, is there a way to use the
inits using static variables and not having to use a heap at all or is the
dynamic allocation required for speex to work?</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-Mike</span></font></p>

</div>

</div>

</body>

</html>