# Stack size?

**URL:** <https://forum.sierrawireless.com/t/stack-size/3351>\
**Category:** Open AT\
**Created:** [June 18, 2009, 4:46am UTC](https://forum.sierrawireless.com/t/stack-size/3351 "2009-06-18T04:46:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chandrasekaran.KA](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@Chandrasekaran.KA](https://forum.sierrawireless.com/u/Chandrasekaran.KA)\
**Post date:** [June 18, 2009, 4:46am UTC](https://forum.sierrawireless.com/t/stack-size/3351/1 "2009-06-18T04:46:01Z")

</div>

Hi to al,

```
      I like to know how the stack size is being determined for an application.

```

In most of the sample codes i found stack size to be 1024.  
u32 wm\_apmCustomStack [1024];  
const u16 wm\_apmCustomStackSize = sizeof ( wm\_apmCustomStack );  
But in some applications stack size is different. So i like to know how to determine the stack size ❓

Thanks in advance,  
Chan

---

<div class="post-metadata">

**Author:** ![Chandrasekaran.KA](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@Chandrasekaran.KA](https://forum.sierrawireless.com/u/Chandrasekaran.KA)\
**Post date:** [June 18, 2009, 8:46am UTC](https://forum.sierrawireless.com/t/stack-size/3351/2 "2009-06-18T08:46:11Z")

</div>

I am waiting for the reply…Pls anyone help me

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [June 18, 2009, 9:17am UTC](https://forum.sierrawireless.com/t/stack-size/3351/3 "2009-06-18T09:17:53Z")

</div>

> [@Chandrasekaran.KA](#):
>
> I am waiting for the reply…Pls anyone help me

This is a forum for user-to-user discussion - if you want to demand support, you need to contact your Distributor or your Wavecom FAE…

I don’t recall this being documented anywhere; it’s just a matter of trial & error - and speaking to your Distributor

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [June 8, 2010, 2:12pm UTC](https://forum.sierrawireless.com/t/stack-size/3351/4 "2010-06-08T14:12:47Z")

</div>

> [@awneil](#):
>
> I don’t recall this being documented anywhere

It’s got worse! Not only is there still no guidance on how to estimate these values, there are now 2 different ways to set it - only one of which is even mentioned in the documentation!

See: [Undocumented: adl\_main, wm\_apmCustomStackSize](https://forum.sierrawireless.com/t/undocumented-adl-main-wm-apmcustomstacksize/4137/1)

> [@](#):
>
> it’s just a matter of trial & error

This really isn’t good enough! 😠

Even the tools and samples are no consistent - see: [viewtopic.php?f=108&t=4943&start=0](https://forum.sierrawireless.com/viewtopic.php?f=108&t=4943&start=0)
