466
|
1 <refentry id="stacksize">
|
|
2 <refnamediv>
|
468
|
3 <refname>Stacksize</refname>
|
|
4 <refname>Freemem</refname>
|
|
5 <refpurpose>obtain stack reservation size</refpurpose>
|
466
|
6 </refnamediv>
|
|
7
|
|
8 <refsynopsisdiv>
|
|
9 <funcsynopsis>
|
|
10 <funcprototype>
|
|
11 <funcdef><function>stacksize</function></funcdef>
|
640
|
12 <void/>
|
468
|
13 </funcprototype>
|
|
14 <funcprototype>
|
|
15 <funcdef><function>freemem</function></funcdef>
|
640
|
16 <void/>
|
466
|
17 </funcprototype>
|
|
18 </funcsynopsis>
|
|
19
|
|
20 </refsynopsisdiv>
|
|
21
|
|
22 <refsect1><title>Description</title>
|
|
23 <para>
|
578
|
24 For a description of the meaning and use of this call, the user
|
|
25 is referred to the Memory Management section of this manual.
|
|
26 </para>
|
|
27 <para>
|
|
28 If the stack check code is in effect, a call to stacksize will
|
|
29 return the maximum number of bytes of stack used at the time of
|
|
30 the call. This call can be used to determine the stack size
|
|
31 required by a program.
|
|
32 </para>
|
|
33 <para>
|
|
34 Freemem() will return the number of bytes of the stack that has
|
|
35 not been used.
|
466
|
36 </para>
|
|
37 </refsect1>
|
544
|
38
|
|
39 <refsect1><title>See Also</title>
|
|
40 <para>
|
|
41 <link linkend="sbrk">ibrk(), sbrk()</link>,
|
|
42 Global variable "memend" and value "end".
|
|
43 </para>
|
|
44 </refsect1>
|
|
45
|
466
|
46 </refentry>
|