[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [LCP]Threads in Linux



Title: RE: [LCP]Threads in Linux

> I have a program in C++ in Linux which is using large arrays
> (150000) inside a function, which called by a thread. After
> compiling the same program in other platforms I am getting
> weird run time errors, related to the stack and my
> application crashes.
>
> question: using large arrays in that way is a problem with
> other platforms, like HP-UX or Solaris ?

automatic arrays go on the stack, which is limited on some
systems. Try adding a static (turning a stack auto array
into a global bss array).

--
Vincent Penquerc'h