From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Trenton D. Adams" To: "'Dan Conti'" , "'eCos mailing list'" Subject: RE: [ECOS] Thread error with large buffer Date: Fri, 20 Jul 2001 07:43:00 -0000 Message-id: <000601c1112a$67ae7670$090110ac@TRENT> References: X-SW-Source: 2001-07/msg00640.html > -----Original Message----- > From: ecos-discuss-owner@sources.redhat.com [ mailto:ecos-discuss- > owner@sources.redhat.com] On Behalf Of Dan Conti > Sent: Thursday, July 19, 2001 5:00 PM > To: eCos mailing list > Subject: RE: [ECOS] Thread error with large buffer > > 4k is a lot of data to put on a stack. also note that you have 4000 > bytes, not 4k there. > If someone asked you the time, would you tell them 4:35 and 23 seconds? If I didn't know that 4000 was not EXACTLY 4K, then I shouldn't be programming let alone programming an embedded system. > why not just make it static? also there are routines you can use to > check the stack size and usage for a given thread. also you can adjust > the stack size for main (the default in a kernel i just glanced at is > 8k). also you can enable stack overflow checking. > > -Dan > This is a TEST program, I don't think it's really necessary to worry about silly things like where stuff resides in memory, whether it's on the stack or on the heap.