On Thu, 19 Jun 2003, Nadav Har'El wrote:

> On Thu, Jun 19, 2003, Nadav Har'El wrote about "Re: [Haifux] stack size":
> > You're doing something wrong. Huge data structures do not belong on the
> > stack, which is by definition a small area used for temporary allocation
> > of small things during function calls (automatic variables, parameters,
> > and sometimes a little more).
>
> By the way, if you think the 8MB default stack limit is tight, wait till
> you try Linux kernel programming - the stack there is limited to 8K (if
> I remember correctly).

In linux, the kernel stack size is 8K minus the size of the task_struct
struct.


Windows has a similar limitation on the stack size. By default each thread
has a maximum stack size of 1 Mbyte. Unlike Linux, the stack size limit is
fixed at compile time (actually at link time), because, if I remember
correctly, is written inside the executable.

                                                        Emil

<snipped>

--------------------------------------------------------------------------
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]


Reply via email to